M2m

Trait M2m 

Source
pub trait M2m:
    Send
    + Sync
    + 'static {
    // Required methods
    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_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_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_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;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with M2mServer.

Required Methods§

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,

Middleware to Middleware operations

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,

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,

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,

Implementors§

Source§

impl<M2mApi> M2m for M2mHandler<M2mApi>
where M2mApi: Service<M2mRequest, Response = M2mResponse, Error = TraceabilityError> + Clone + Sync + Send + 'static, M2mApi::Future: Send,