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§
fn into_boxed<'dis>(self) -> BoxedDisposal<'dis>where
Self: MaybeSend + 'dis,
Sourcefn into_subscription<D>(self) -> Subscription<D>where
D: Disposable + From<Self>,
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.
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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".