Trait SmsClient

Source
pub trait SmsClient: Send + Sync {
    // Required method
    fn send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: SendRequest<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<SendResponse, SmsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn send<'life0, 'life1, 'async_trait>( &'life0 self, req: SendRequest<'life1>, ) -> Pin<Box<dyn Future<Output = Result<SendResponse, SmsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Send a single text SMS.

Implementors§