Skip to main content

SendEmailOtp

Trait SendEmailOtp 

Source
pub trait SendEmailOtp: Send + Sync {
    // Required method
    fn send<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        delivery: &'life1 EmailOtpDelivery,
        context: &'life2 CallbackContext,
    ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Delivers a code to its intended mailbox with the real native callback context. Delivery awaits and propagates errors by default; configured background work owns its context and logs failures while retaining the issued verification.

Required Methods§

Source

fn send<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, delivery: &'life1 EmailOtpDelivery, context: &'life2 CallbackContext, ) -> Pin<Box<dyn Future<Output = AuthResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§