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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".