MetadataApi

Trait MetadataApi 

Source
pub trait MetadataApi:
    Send
    + Sync
    + 'static {
    type SubscribeSyncCursorStream: Stream<Item = Result<GetSyncCursorResponse, Status>> + Send + 'static;

    // Required methods
    fn get_sync_cursor<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSyncCursorRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSyncCursorResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe_sync_cursor<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSyncCursorRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeSyncCursorStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_version<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetVersionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetVersionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_payer_info<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetPayerInfoRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetPayerInfoResponse>, 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 MetadataApiServer.

Required Associated Types§

Source

type SubscribeSyncCursorStream: Stream<Item = Result<GetSyncCursorResponse, Status>> + Send + 'static

Server streaming response type for the SubscribeSyncCursor method.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Implementors§