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§
Sourcefn 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 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
Sourcefn 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 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.
Sourcefn 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,
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