[][src]Trait double_decker::SubscribeToReader

pub trait SubscribeToReader<T: Send + 'static> {
#[must_use]    fn subscribe_on_thread(
        &self,
        callback: Box<dyn FnMut(T) + Send>
    ) -> Subscription;
fn subscribe(&self, callback: Box<dyn FnMut(T) + Send>); }

Required methods

#[must_use]fn subscribe_on_thread(
    &self,
    callback: Box<dyn FnMut(T) + Send>
) -> Subscription

fn subscribe(&self, callback: Box<dyn FnMut(T) + Send>)

Loading content...

Implementations on Foreign Types

impl<T: Send + 'static> SubscribeToReader<T> for Receiver<T>[src]

Loading content...

Implementors

impl<T: Clone + Send + 'static> SubscribeToReader<T> for Bus<T>[src]

Loading content...