Trait Disposable

Source
pub trait Disposable {
    // Provided methods
    fn into_event(self) -> DisposableEvent<Self>
       where Self: Sized { ... }
    fn merge<U>(self, other: U) -> Merge<Self, U>
       where Self: Sized,
             U: Disposable { ... }
    fn into_boxed(self) -> DisposableBox
       where Self: Sized + Clone + 'static { ... }
}
Expand description

The computation that disposes the observable subscription.

Provided Methods§

Source

fn into_event(self) -> DisposableEvent<Self>
where Self: Sized,

Convert to the Event computation.

Source

fn merge<U>(self, other: U) -> Merge<Self, U>
where Self: Sized, U: Disposable,

Merge with another Disposable computation.

Source

fn into_boxed(self) -> DisposableBox
where Self: Sized + Clone + 'static,

Convert into a boxed representation.

Implementors§

Source§

impl Disposable for DisposableBox

Source§

impl Disposable for Empty

Source§

impl<F> Disposable for Cons<F>
where F: FnOnce(&Point<'_>) -> Result<()>,

Source§

impl<I, M> Disposable for Concat<I, M>
where I: Iterator<Item = M>, M: Disposable,

Source§

impl<M> Disposable for Trace<M>
where M: Disposable,

Source§

impl<M, U> Disposable for Merge<M, U>
where M: Disposable, U: Disposable,