pub trait Channel: Send + Sync {
// Required methods
fn send(&self, message: &str) -> Result<(), DeliveryError>;
fn channel_type(&self) -> &str;
}Expand description
Trait for outbound message delivery to external channels.
Required Methods§
Sourcefn send(&self, message: &str) -> Result<(), DeliveryError>
fn send(&self, message: &str) -> Result<(), DeliveryError>
Send a text message to the channel destination.
Sourcefn channel_type(&self) -> &str
fn channel_type(&self) -> &str
Channel type identifier (e.g., “telegram”).