pub struct M2mHandler<M2mApi> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<M2mApi> M2m for M2mHandler<M2mApi>where
M2mApi: Service<M2mRequest, Response = M2mResponse, Error = TraceabilityError> + Clone + Sync + Send + 'static,
M2mApi::Future: Send,
impl<M2mApi> M2m for M2mHandler<M2mApi>where
M2mApi: Service<M2mRequest, Response = M2mResponse, Error = TraceabilityError> + Clone + Sync + Send + 'static,
M2mApi::Future: Send,
Source§fn m2m_destination_policy<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDestinationPolicy>,
) -> Pin<Box<dyn Future<Output = Result<Response<DestinationPolicy>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn m2m_destination_policy<'life0, 'async_trait>(
&'life0 self,
request: Request<GetDestinationPolicy>,
) -> Pin<Box<dyn Future<Output = Result<Response<DestinationPolicy>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles destination policy requests from remote middleware.
Returns the compliance policy for a destination resource to enable remote middleware instances to evaluate flow authorization.
Source§fn m2m_check_source_compliance<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckSourceCompliance>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn m2m_check_source_compliance<'life0, 'async_trait>(
&'life0 self,
request: Request<CheckSourceCompliance>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles source compliance checking requests from remote middleware.
Checks compliance policies for a set of source resources to enable distributed flow evaluation across multiple middleware instances.
Source§fn m2m_update_provenance<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateProvenance>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn m2m_update_provenance<'life0, 'async_trait>(
&'life0 self,
request: Request<UpdateProvenance>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles provenance update requests from remote middleware.
Updates the provenance information for a destination resource based on data flows from remote sources. This maintains the audit trail across distributed operations.
Source§fn m2m_broadcast_deletion<'life0, 'async_trait>(
&'life0 self,
request: Request<BroadcastDeletionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn m2m_broadcast_deletion<'life0, 'async_trait>(
&'life0 self,
request: Request<BroadcastDeletionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handles deletion broadcast requests from remote middleware.
Broadcasts the deletion of a resource to all middleware instances.
Auto Trait Implementations§
impl<M2mApi> Freeze for M2mHandler<M2mApi>where
M2mApi: Freeze,
impl<M2mApi> RefUnwindSafe for M2mHandler<M2mApi>where
M2mApi: RefUnwindSafe,
impl<M2mApi> Send for M2mHandler<M2mApi>where
M2mApi: Send,
impl<M2mApi> Sync for M2mHandler<M2mApi>where
M2mApi: Sync,
impl<M2mApi> Unpin for M2mHandler<M2mApi>where
M2mApi: Unpin,
impl<M2mApi> UnwindSafe for M2mHandler<M2mApi>where
M2mApi: 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
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].