Skip to main content

RecipientHandler

Trait RecipientHandler 

Source
pub trait RecipientHandler<Cx = RequestContext>:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_recipients<'life0, 'async_trait>(
        &'life0 self,
        request: ListRecipientsRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ListRecipientsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_recipient<'life0, 'async_trait>(
        &'life0 self,
        request: CreateRecipientRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_recipient<'life0, 'async_trait>(
        &'life0 self,
        request: GetRecipientRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_recipient<'life0, 'async_trait>(
        &'life0 self,
        request: UpdateRecipientRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_recipient<'life0, 'async_trait>(
        &'life0 self,
        request: DeleteRecipientRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_recipients<'life0, 'async_trait>( &'life0 self, request: ListRecipientsRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ListRecipientsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List recipients.

Source

fn create_recipient<'life0, 'async_trait>( &'life0 self, request: CreateRecipientRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new recipient.

Source

fn get_recipient<'life0, 'async_trait>( &'life0 self, request: GetRecipientRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a recipient by name.

Source

fn update_recipient<'life0, 'async_trait>( &'life0 self, request: UpdateRecipientRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<Recipient>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update a recipient.

Source

fn delete_recipient<'life0, 'async_trait>( &'life0 self, request: DeleteRecipientRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a recipient.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§