Skip to main content

DirectMessenger

Trait DirectMessenger 

Source
pub trait DirectMessenger: Send + Sync {
    // Required method
    fn send(
        &self,
        username: &str,
        text: &str,
    ) -> BoxFuture<'_, Result<(), ChatFailure>>;
}
Expand description

Sends a text as a direct message to a Mattermost user (the bot in production, a recorder in tests).

Required Methods§

Source

fn send( &self, username: &str, text: &str, ) -> BoxFuture<'_, Result<(), ChatFailure>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§