[−][src]Trait pico_streaming::SubscribeToReader
Required methods
#[must_use]fn subscribe_on_thread(
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription
fn subscribe(&self, callback: Box<dyn FnMut(T) + 'static + Send, Global>)
Implementations on Foreign Types
impl<T> SubscribeToReader<T> for Bus<T> where
T: 'static + Clone + Send,
[src]
T: 'static + Clone + Send,
#[must_use]pub fn subscribe_on_thread(
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription
[src]
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription
pub fn subscribe(&self, callback: Box<dyn FnMut(T) + 'static + Send, Global>)
[src]
impl<T> SubscribeToReader<T> for Receiver<T> where
T: 'static + Send,
[src]
T: 'static + Send,
#[must_use]pub fn subscribe_on_thread(
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription
[src]
&self,
callback: Box<dyn FnMut(T) + 'static + Send, Global>
) -> Subscription