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<()>

Implementors§