[][src]Struct rxrust::subscriber::Subscriber

pub struct Subscriber<Sub> { /* fields omitted */ }

Implements the Observer trait and Subscription trait. While the Observer is the public API for consuming the values of an Observable, all Observers get converted to a Subscriber, in order to provide Subscription capabilities.

Methods

impl<Sub> Subscriber<Sub>[src]

pub fn new(subscribe: Sub) -> Self[src]

pub fn clone_subscription(&self) -> SimpleSubscription[src]

Trait Implementations

impl<Sub> Subscription for Subscriber<Sub>[src]

impl<Item, Err, Sub> Observer<Item, Err> for Subscriber<Sub> where
    Sub: RxFn(RxValue<&Item, &Err>), 
[src]

impl<Sub> Sync for Subscriber<Sub> where
    Sub: Send
[src]

impl<Sub> Send for Subscriber<Sub> where
    Sub: Send
[src]

Auto Trait Implementations

impl<Sub> Unpin for Subscriber<Sub> where
    Sub: Unpin

impl<Sub> UnwindSafe for Subscriber<Sub> where
    Sub: UnwindSafe

impl<Sub> RefUnwindSafe for Subscriber<Sub> where
    Sub: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]