Trait Trace2eGrpc

Source
pub trait Trace2eGrpc:
    Send
    + Sync
    + 'static {
    // Required methods
    fn p2m_local_enroll<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LocalCt>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn p2m_remote_enroll<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RemoteCt>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn p2m_io_request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<IoInfo>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Grant>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn p2m_io_report<'life0, 'async_trait>(
        &'life0 self,
        request: Request<IoResult>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn m2m_destination_compliance<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetDestinationCompliance>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DestinationCompliance>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn m2m_source_compliance<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSourceCompliance>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<SourceCompliance>, 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;
}
Expand description

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

Required Methods§

Source

fn p2m_local_enroll<'life0, 'async_trait>( &'life0 self, request: Request<LocalCt>, ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Process to Middleware operations

Source

fn p2m_remote_enroll<'life0, 'async_trait>( &'life0 self, request: Request<RemoteCt>, ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn p2m_io_request<'life0, 'async_trait>( &'life0 self, request: Request<IoInfo>, ) -> Pin<Box<dyn Future<Output = Result<Response<Grant>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn p2m_io_report<'life0, 'async_trait>( &'life0 self, request: Request<IoResult>, ) -> Pin<Box<dyn Future<Output = Result<Response<Ack>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn m2m_destination_compliance<'life0, 'async_trait>( &'life0 self, request: Request<GetDestinationCompliance>, ) -> Pin<Box<dyn Future<Output = Result<Response<DestinationCompliance>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Middleware to Middleware operations

Source

fn m2m_source_compliance<'life0, 'async_trait>( &'life0 self, request: Request<GetSourceCompliance>, ) -> Pin<Box<dyn Future<Output = Result<Response<SourceCompliance>, 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,

Implementors§

Source§

impl<P2mApi, M2mApi> Trace2eGrpc for Trace2eRouter<P2mApi, M2mApi>
where P2mApi: Service<P2mRequest, Response = P2mResponse, Error = TraceabilityError> + Clone + Sync + Send + 'static, P2mApi::Future: Send, M2mApi: Service<M2mRequest, Response = M2mResponse, Error = TraceabilityError> + Clone + Sync + Send + 'static, M2mApi::Future: Send,

Implementation of the trace2e gRPC service protocol.

This implementation provides the server-side handlers for all gRPC endpoints defined in the trace2e protocol. It handles both P2M (process-to-middleware) and M2M (machine-to-machine) operations by delegating to the appropriate internal service handlers.