Trait SubscribeNext

Source
pub trait SubscribeNext<'a, N> {
    type Unsub: SubscriptionLike;

    // Required method
    fn subscribe(self, next: N) -> SubscriptionWrapper<Self::Unsub>;
}

Required Associated Types§

Required Methods§

Source

fn subscribe(self, next: N) -> SubscriptionWrapper<Self::Unsub>

Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.

Implementors§

Source§

impl<'a, S, N> SubscribeNext<'a, N> for Shared<S>
where S: SharedObservable<Err = ()>, N: FnMut(S::Item) + Send + Sync + 'static, S::Item: 'static,

Source§

impl<'a, S, N> SubscribeNext<'a, N> for S
where S: LocalObservable<'a, Err = ()>, N: FnMut(S::Item) + 'a, S::Item: 'a,