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§
Sourcefn 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,
Middleware to Middleware operations