Skip to main content

ChannelSource

Trait ChannelSource 

pub trait ChannelSource: Send + Sync {
    // Required method
    fn channel(&self, alias: &str) -> Option<Arc<dyn Channel>>;
}
Expand description

Supplies outbound delivery channels.

Inbound turns do not arrive through this trait. It covers only the channels the runtime sends through: replies routed by alias, scheduled delivery, and approval prompts.

Required Methods§

Source

fn channel(&self, alias: &str) -> Option<Arc<dyn Channel>>

Return the channel configured under alias, if it is running in this generation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§