Skip to main content

MessageSender

Trait MessageSender 

Source
pub trait MessageSender: Send + Sync {
    // Required methods
    fn send_dm(&self, root: &Path, agent_id: &str, body: &str) -> Result<()>;
    fn broadcast(&self, root: &Path, channel_id: &str, body: &str) -> Result<()>;
}

Required Methods§

Source

fn send_dm(&self, root: &Path, agent_id: &str, body: &str) -> Result<()>

Source

fn broadcast(&self, root: &Path, channel_id: &str, body: &str) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§