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§
fn send_dm(&self, root: &Path, agent_id: &str, body: &str) -> Result<()>
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".