Skip to main content

Subscriber

Trait Subscriber 

Source
pub trait Subscriber:
    RxObserver
    + ObserverUpgradesToSelf
    + SubscriptionWithTeardown
    + Send
    + Sync { }
Expand description

§Subscriber

A Subscriber is an [Observer] that is also a [SubscriptionLike], so it can clean itself up upon unsubscribe.

§For Implementations

A struct implementing Subscriber should have all their fields as private, as users will never directly interact with a Subscriber.

§Inlining

A subscribers [Observer] functions like next, error and complete that just simply forward the signal to its destination should always be #[inline].

Implementors§