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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".