pub enum EitherDisposal<D1, D2> {
Left(D1),
Right(D2),
}Variants§
Trait Implementations§
Source§impl<D1, D2> Clone for EitherDisposal<D1, D2>
impl<D1, D2> Clone for EitherDisposal<D1, D2>
Source§impl<D1, D2> Debug for EitherDisposal<D1, D2>
impl<D1, D2> Debug for EitherDisposal<D1, D2>
Source§impl<D1, D2> Disposable for EitherDisposal<D1, D2>where
D1: Disposable,
D2: Disposable,
impl<D1, D2> Disposable for EitherDisposal<D1, D2>where
D1: Disposable,
D2: Disposable,
Auto Trait Implementations§
impl<D1, D2> Freeze for EitherDisposal<D1, D2>
impl<D1, D2> RefUnwindSafe for EitherDisposal<D1, D2>where
D1: RefUnwindSafe,
D2: RefUnwindSafe,
impl<D1, D2> Send for EitherDisposal<D1, D2>
impl<D1, D2> Sync for EitherDisposal<D1, D2>
impl<D1, D2> Unpin for EitherDisposal<D1, D2>
impl<D1, D2> UnsafeUnpin for EitherDisposal<D1, D2>where
D1: UnsafeUnpin,
D2: UnsafeUnpin,
impl<D1, D2> UnwindSafe for EitherDisposal<D1, D2>where
D1: UnwindSafe,
D2: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<D> DisposableExt for Dwhere
D: Disposable,
impl<D> DisposableExt for Dwhere
D: Disposable,
fn into_boxed<'dis>(self) -> BoxedDisposal<'dis>where
Self: MaybeSend + 'dis,
Source§fn 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.