SubscribableChannel

Trait SubscribableChannel 

Source
pub trait SubscribableChannel: Channel {
    // Required method
    fn subscribe<F>(&self, f: F) -> usize
       where F: Fn(Exchange) -> Result<(), Error> + Send + Sync + 'static;
}
Expand description

Register-and-fanout extension trait (DirectChannel).

Required Methods§

Source

fn subscribe<F>(&self, f: F) -> usize
where F: Fn(Exchange) -> Result<(), Error> + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§