pub struct RuntimeServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> RuntimeServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> RuntimeServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> RuntimeServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn submit_run( &mut self, request: impl IntoRequest<SubmitRunRequest>, ) -> Result<Response<SubmitRunResponse>, Status>
pub async fn get_run( &mut self, request: impl IntoRequest<GetRunRequest>, ) -> Result<Response<GetRunResponse>, Status>
pub async fn tap_run( &mut self, request: impl IntoRequest<TapRunRequest>, ) -> Result<Response<Streaming<RunEvent>>, Status>
pub async fn replay_run( &mut self, request: impl IntoRequest<ReplayRunRequest>, ) -> Result<Response<ReplayRunResponse>, Status>
pub async fn update_breakpoints( &mut self, request: impl IntoRequest<UpdateBreakpointsRequest>, ) -> Result<Response<UpdateBreakpointsResponse>, Status>
pub async fn resume_run( &mut self, request: impl IntoRequest<ResumeRunRequest>, ) -> Result<Response<ResumeRunResponse>, Status>
pub async fn patch_step( &mut self, request: impl IntoRequest<PatchStepRequest>, ) -> Result<Response<PatchStepResponse>, Status>
pub async fn create_branch_run( &mut self, request: impl IntoRequest<CreateBranchRunRequest>, ) -> Result<Response<CreateBranchRunResponse>, Status>
pub async fn sync_eval_pack( &mut self, request: impl IntoRequest<SyncEvalPackRequest>, ) -> Result<Response<SyncEvalPackResponse>, Status>
pub async fn list_eval_scenarios( &mut self, request: impl IntoRequest<ListEvalScenariosRequest>, ) -> Result<Response<ListEvalScenariosResponse>, Status>
pub async fn record_eval_result( &mut self, request: impl IntoRequest<RecordEvalResultRequest>, ) -> Result<Response<RecordEvalResultResponse>, Status>
pub async fn check_change_gate( &mut self, request: impl IntoRequest<CheckChangeGateRequest>, ) -> Result<Response<CheckChangeGateResponse>, Status>
pub async fn record_gate_followup( &mut self, request: impl IntoRequest<RecordGateFollowupRequest>, ) -> Result<Response<RecordGateFollowupResponse>, Status>
pub async fn list_change_gates( &mut self, request: impl IntoRequest<ListChangeGatesRequest>, ) -> Result<Response<ListChangeGatesResponse>, Status>
pub async fn get_attestations( &mut self, request: impl IntoRequest<GetAttestationsRequest>, ) -> Result<Response<GetAttestationsResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for RuntimeServiceClient<T>
impl<T: Clone> Clone for RuntimeServiceClient<T>
Source§fn clone(&self) -> RuntimeServiceClient<T>
fn clone(&self) -> RuntimeServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for RuntimeServiceClient<T>
impl<T> RefUnwindSafe for RuntimeServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for RuntimeServiceClient<T>where
T: Send,
impl<T> Sync for RuntimeServiceClient<T>where
T: Sync,
impl<T> Unpin for RuntimeServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for RuntimeServiceClient<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request