Skip to main content

DisposableExt

Trait DisposableExt 

Source
pub trait DisposableExt: Disposable + Sized {
    // Provided methods
    fn into_boxed<'dis>(self) -> BoxedDisposal<'dis>
       where Self: MaybeSend + 'dis { ... }
    fn into_subscription<D>(self) -> Subscription<D>
       where D: Disposable + From<Self> { ... }
    fn into_option(self) -> OptionDisposal<Self> { ... }
    fn then<D: Disposable>(self, other: D) -> ChainDisposal<Self, D> { ... }
    fn into_left<D2: Disposable>(self) -> EitherDisposal<Self, D2> { ... }
    fn into_right<D1: Disposable>(self) -> EitherDisposal<D1, Self> { ... }
}

Provided Methods§

Source

fn into_boxed<'dis>(self) -> BoxedDisposal<'dis>
where Self: MaybeSend + 'dis,

Source

fn into_subscription<D>(self) -> Subscription<D>
where D: Disposable + From<Self>,

Converts this disposal into a subscription whose inner disposal is created through From.

Source

fn into_option(self) -> OptionDisposal<Self>

Source

fn then<D: Disposable>(self, other: D) -> ChainDisposal<Self, D>

Source

fn into_left<D2: Disposable>(self) -> EitherDisposal<Self, D2>

Source

fn into_right<D1: Disposable>(self) -> EitherDisposal<D1, Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<D> DisposableExt for D
where D: Disposable,