pub struct AsyncDropper<T: AsyncDrop + Default + Send + 'static> { /* private fields */ }Available on non-crate feature
no-default-bound only.Expand description
Wrapper struct that enables async_drop() behavior.
This version requires a Default implementation.
Implementations§
Trait Implementations§
Source§impl<T: Default + AsyncDrop + Default + Send + 'static> Default for AsyncDropper<T>
impl<T: Default + AsyncDrop + Default + Send + 'static> Default for AsyncDropper<T>
Source§fn default() -> AsyncDropper<T>
fn default() -> AsyncDropper<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for AsyncDropper<T>
impl<T> Deref for AsyncDropper<T>
Source§impl<T> DerefMut for AsyncDropper<T>
impl<T> DerefMut for AsyncDropper<T>
Auto Trait Implementations§
impl<T> Freeze for AsyncDropper<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsyncDropper<T>where
T: RefUnwindSafe,
impl<T> Send for AsyncDropper<T>
impl<T> Sync for AsyncDropper<T>where
T: Sync,
impl<T> Unpin for AsyncDropper<T>where
T: Unpin,
impl<T> UnwindSafe for AsyncDropper<T>where
T: 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