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

pub struct Subscriber<O, U> { /* 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.

Implementations

impl<O> Subscriber<O, LocalSubscription>[src]

pub fn local(observer: O) -> Self[src]

impl<O> Subscriber<O, SharedSubscription>[src]

pub fn shared(observer: O) -> Self[src]

Trait Implementations

impl<O: Clone, U: Clone> Clone for Subscriber<O, U>[src]

impl<Item, Err, O, U> Observer<Item, Err> for Subscriber<O, U> where
    O: Observer<Item, Err>,
    U: SubscriptionLike
[src]

impl<O, U: SubscriptionLike> SubscriptionLike for Subscriber<O, U>[src]

Auto Trait Implementations

impl<O, U> RefUnwindSafe for Subscriber<O, U> where
    O: RefUnwindSafe,
    U: RefUnwindSafe

impl<O, U> Send for Subscriber<O, U> where
    O: Send,
    U: Send

impl<O, U> Sync for Subscriber<O, U> where
    O: Sync,
    U: Sync

impl<O, U> Unpin for Subscriber<O, U> where
    O: Unpin,
    U: Unpin

impl<O, U> UnwindSafe for Subscriber<O, U> where
    O: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<Item, Err, T> Observer<Item, Err> for T where
    T: InnerDerefMut,
    <T as InnerDeref>::Target: Observer<Item, Err>, 
[src]

impl<Item, Err, T> Publisher<Item, Err> for T where
    T: Observer<Item, Err> + SubscriptionLike
[src]

impl<T> SubscriptionLike for T where
    T: InnerDerefMut,
    <T as InnerDeref>::Target: SubscriptionLike
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.