pub struct MacpRuntimeServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> MacpRuntimeServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> MacpRuntimeServiceClient<T>where
T: GrpcService<Body>,
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,
) -> MacpRuntimeServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::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 initialize( &mut self, request: impl IntoRequest<InitializeRequest>, ) -> Result<Response<InitializeResponse>, Status>
pub async fn send( &mut self, request: impl IntoRequest<SendRequest>, ) -> Result<Response<SendResponse>, Status>
pub async fn stream_session( &mut self, request: impl IntoStreamingRequest<Message = StreamSessionRequest>, ) -> Result<Response<Streaming<StreamSessionResponse>>, Status>
pub async fn get_session( &mut self, request: impl IntoRequest<GetSessionRequest>, ) -> Result<Response<GetSessionResponse>, Status>
pub async fn cancel_session( &mut self, request: impl IntoRequest<CancelSessionRequest>, ) -> Result<Response<CancelSessionResponse>, Status>
Sourcepub async fn suspend_session(
&mut self,
request: impl IntoRequest<SuspendSessionRequest>,
) -> Result<Response<SuspendSessionResponse>, Status>
pub async fn suspend_session( &mut self, request: impl IntoRequest<SuspendSessionRequest>, ) -> Result<Response<SuspendSessionResponse>, Status>
Session suspension / resume (RFC-MACP-0001 §7.5)
pub async fn resume_session( &mut self, request: impl IntoRequest<ResumeSessionRequest>, ) -> Result<Response<ResumeSessionResponse>, Status>
pub async fn get_manifest( &mut self, request: impl IntoRequest<GetManifestRequest>, ) -> Result<Response<GetManifestResponse>, Status>
pub async fn list_modes( &mut self, request: impl IntoRequest<ListModesRequest>, ) -> Result<Response<ListModesResponse>, Status>
pub async fn watch_mode_registry( &mut self, request: impl IntoRequest<WatchModeRegistryRequest>, ) -> Result<Response<Streaming<WatchModeRegistryResponse>>, Status>
pub async fn list_roots( &mut self, request: impl IntoRequest<ListRootsRequest>, ) -> Result<Response<ListRootsResponse>, Status>
pub async fn watch_roots( &mut self, request: impl IntoRequest<WatchRootsRequest>, ) -> Result<Response<Streaming<WatchRootsResponse>>, Status>
Sourcepub async fn list_ext_modes(
&mut self,
request: impl IntoRequest<ListExtModesRequest>,
) -> Result<Response<ListExtModesResponse>, Status>
pub async fn list_ext_modes( &mut self, request: impl IntoRequest<ListExtModesRequest>, ) -> Result<Response<ListExtModesResponse>, Status>
Extension mode lifecycle
pub async fn register_ext_mode( &mut self, request: impl IntoRequest<RegisterExtModeRequest>, ) -> Result<Response<RegisterExtModeResponse>, Status>
pub async fn unregister_ext_mode( &mut self, request: impl IntoRequest<UnregisterExtModeRequest>, ) -> Result<Response<UnregisterExtModeResponse>, Status>
pub async fn promote_mode( &mut self, request: impl IntoRequest<PromoteModeRequest>, ) -> Result<Response<PromoteModeResponse>, Status>
Sourcepub async fn watch_signals(
&mut self,
request: impl IntoRequest<WatchSignalsRequest>,
) -> Result<Response<Streaming<WatchSignalsResponse>>, Status>
pub async fn watch_signals( &mut self, request: impl IntoRequest<WatchSignalsRequest>, ) -> Result<Response<Streaming<WatchSignalsResponse>>, Status>
Ambient Signal observation
Sourcepub async fn list_sessions(
&mut self,
request: impl IntoRequest<ListSessionsRequest>,
) -> Result<Response<ListSessionsResponse>, Status>
pub async fn list_sessions( &mut self, request: impl IntoRequest<ListSessionsRequest>, ) -> Result<Response<ListSessionsResponse>, Status>
Session lifecycle observation (RFC-MACP-0001 §7.3)
pub async fn watch_sessions( &mut self, request: impl IntoRequest<WatchSessionsRequest>, ) -> Result<Response<Streaming<WatchSessionsResponse>>, Status>
Sourcepub async fn register_policy(
&mut self,
request: impl IntoRequest<RegisterPolicyRequest>,
) -> Result<Response<RegisterPolicyResponse>, Status>
pub async fn register_policy( &mut self, request: impl IntoRequest<RegisterPolicyRequest>, ) -> Result<Response<RegisterPolicyResponse>, Status>
Governance policy lifecycle (RFC-MACP-0012)
pub async fn unregister_policy( &mut self, request: impl IntoRequest<UnregisterPolicyRequest>, ) -> Result<Response<UnregisterPolicyResponse>, Status>
pub async fn get_policy( &mut self, request: impl IntoRequest<GetPolicyRequest>, ) -> Result<Response<GetPolicyResponse>, Status>
pub async fn list_policies( &mut self, request: impl IntoRequest<ListPoliciesRequest>, ) -> Result<Response<ListPoliciesResponse>, Status>
pub async fn watch_policies( &mut self, request: impl IntoRequest<WatchPoliciesRequest>, ) -> Result<Response<Streaming<WatchPoliciesResponse>>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for MacpRuntimeServiceClient<T>
impl<T: Clone> Clone for MacpRuntimeServiceClient<T>
Source§fn clone(&self) -> MacpRuntimeServiceClient<T>
fn clone(&self) -> MacpRuntimeServiceClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MacpRuntimeServiceClient<T>
impl<T> RefUnwindSafe for MacpRuntimeServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for MacpRuntimeServiceClient<T>
impl<T> Sync for MacpRuntimeServiceClient<T>
impl<T> Unpin for MacpRuntimeServiceClient<T>
impl<T> UnsafeUnpin for MacpRuntimeServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for MacpRuntimeServiceClient<T>where
Grpc<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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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