Skip to main content

NotificationService

Trait NotificationService 

Source
pub trait NotificationService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn register<'life0, 'async_trait>(
        &'life0 self,
        request: Request<RegisterRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RecipientState>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unregister<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UnregisterRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<UnregisterResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_subscriptions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateSubscriptionsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<RecipientState>, 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 NotificationServiceServer.

Required Methods§

Source

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

Create or renew a recipient, preserving its subscriptions. buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE

Source

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

Delete a recipient and its subscriptions.

Source

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

Apply topic changes atomically and renew the recipient. buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE

Implementors§