SubscriptionLike

Trait SubscriptionLike 

Source
pub trait SubscriptionLike {
    // Required methods
    fn unsubscribe(&mut self);
    fn is_closed(&self) -> bool;
}
Expand description

Subscription returns from Observable.subscribe(Subscriber) to allow unsubscribing.

Required Methods§

Source

fn unsubscribe(&mut self)

This allows deregistering an stream before it has finished receiving all events (i.e. before onCompleted is called).

Source

fn is_closed(&self) -> bool

Trait Implementations§

Source§

impl Debug for Box<dyn SubscriptionLike>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

Source§

impl<T> SubscriptionLike for Box<T>
where T: SubscriptionLike + ?Sized,

Source§

fn unsubscribe(&mut self)

Source§

fn is_closed(&self) -> bool

Source§

impl<T> SubscriptionLike for Rc<RefCell<T>>

Source§

fn unsubscribe(&mut self)

Source§

fn is_closed(&self) -> bool

Source§

impl<T> SubscriptionLike for Arc<Mutex<T>>

Source§

fn unsubscribe(&mut self)

Source§

fn is_closed(&self) -> bool

Implementors§