[−][src]Trait ommui_broadcast::SubscriptionRegistration
A trait for subscribing to a broadcaster.
Required methods
fn subscribe_with<F: FnMut(&mut Sender<T>)>(
&self,
f: &mut F
) -> Result<Receiver<T>, Error>
&self,
f: &mut F
) -> Result<Receiver<T>, Error>
Subscribe to a broadcaster and return the receiver. Calls a function on the newly created sender. If the associated broadcaster got dropped in the meantime, an error gets returned.
Provided methods
fn subscribe(&self) -> Result<Receiver<T>, Error>
Subscribe to a broadcaster and return the receiver. If the associated broadcaster got dropped in the meantime, an error gets returned.