pub struct BoundDropDisposal<D: Disposable>(/* private fields */);Expand description
A disposal that calls the dispose method of a Disposable when dropped.
Implementations§
Source§impl<D: Disposable> BoundDropDisposal<D>
impl<D: Disposable> BoundDropDisposal<D>
pub fn new(disposal: D) -> Self
pub fn preceded_by<D0: Disposable>( self, other: D0, ) -> BoundDropDisposal<ChainDisposal<D0, D>>
pub fn then<D1: Disposable>( self, other: D1, ) -> BoundDropDisposal<ChainDisposal<D, D1>>
pub fn preceded_by_bound<D1: Disposable>( self, other: BoundDropDisposal<D1>, ) -> BoundDropDisposal<ChainDisposal<D1, D>>
pub fn map_into<D1>(self) -> BoundDropDisposal<D1>where
D1: From<D> + Disposable,
Trait Implementations§
Source§impl<D: Disposable> Debug for BoundDropDisposal<D>
impl<D: Disposable> Debug for BoundDropDisposal<D>
Source§impl Default for BoundDropDisposal<()>
impl Default for BoundDropDisposal<()>
Source§impl<D: Disposable> Disposable for BoundDropDisposal<D>
impl<D: Disposable> Disposable for BoundDropDisposal<D>
Source§impl<D: Disposable> Drop for BoundDropDisposal<D>
impl<D: Disposable> Drop for BoundDropDisposal<D>
Auto Trait Implementations§
impl<D> Freeze for BoundDropDisposal<D>
impl<D> RefUnwindSafe for BoundDropDisposal<D>where
Option<D>: RefUnwindSafe,
impl<D> Send for BoundDropDisposal<D>
impl<D> Sync for BoundDropDisposal<D>
impl<D> Unpin for BoundDropDisposal<D>
impl<D> UnsafeUnpin for BoundDropDisposal<D>where
Option<D>: UnsafeUnpin,
impl<D> UnwindSafe for BoundDropDisposal<D>where
Option<D>: 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<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.