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