Skip to main content

MessageBackend

Trait MessageBackend 

Source
pub trait MessageBackend: Send + Sync {
    // Required method
    fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        channel: &'life1 str,
        recipient: &'life2 str,
        content: &'life3 str,
        namespace: &'life4 str,
    ) -> Pin<Box<dyn Future<Output = Result<MessageOutcome, ActionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
}
Expand description

Optional backend for outbound message actions.

Required Methods§

Source

fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, channel: &'life1 str, recipient: &'life2 str, content: &'life3 str, namespace: &'life4 str, ) -> Pin<Box<dyn Future<Output = Result<MessageOutcome, ActionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Implementors§