pub trait SubscriptionRegistration<T: Clone> {
fn subscribe_with<F: FnMut(&mut Sender<T>)>(
&self,
f: &mut F
) -> Result<Receiver<T>, Error>;
fn subscribe(&self) -> Result<Receiver<T>, Error> { ... }
}
Expand description
A trait for subscribing to a broadcaster.