Skip to main content

MessageHandler

Type Alias MessageHandler 

Source
pub type MessageHandler = Arc<dyn Fn(ChannelMessage, Arc<dyn Channel>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

Callback type for processing incoming channel messages.

Aliased Type§

pub struct MessageHandler { /* private fields */ }