ReplicationApi

Trait ReplicationApi 

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

    // Required methods
    fn subscribe_envelopes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SubscribeEnvelopesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeEnvelopesStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_envelopes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryEnvelopesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryEnvelopesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_payer_envelopes<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PublishPayerEnvelopesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PublishPayerEnvelopesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_inbox_ids<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetInboxIdsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetInboxIdsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_newest_envelope<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNewestEnvelopeRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNewestEnvelopeResponse>, 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 ReplicationApiServer.

Required Associated Types§

Source

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

Server streaming response type for the SubscribeEnvelopes method.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Get the newest envelope for each topic

Implementors§