Skip to main content

NotificationApi

Trait NotificationApi 

Source
pub trait NotificationApi:
    Send
    + Sync
    + 'static {
    type SubscribeAllEnvelopesStream: Stream<Item = Result<SubscribeEnvelopesResponse, Status>> + Send + 'static;

    // Required method
    fn subscribe_all_envelopes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscribeAllEnvelopesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeAllEnvelopesStream>, 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 NotificationApiServer.

Required Associated Types§

Source

type SubscribeAllEnvelopesStream: Stream<Item = Result<SubscribeEnvelopesResponse, Status>> + Send + 'static

Server streaming response type for the SubscribeAllEnvelopes method.

Required Methods§

Source

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

Implementors§