[][src]Trait pico_streaming::SubscribeToReader

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

Required methods

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

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

Loading content...

Implementations on Foreign Types

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

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

Loading content...

Implementors

Loading content...