pub struct DropGuard<T: 'static>(pub T);Expand description
Blanket teardown for resources that just need dropping
(scope.own(DropGuard(resource)) when no specialized impl exists).
Tuple Fields§
§0: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DropGuard<T>where
T: Freeze,
impl<T> RefUnwindSafe for DropGuard<T>where
T: RefUnwindSafe,
impl<T> Send for DropGuard<T>where
T: Send,
impl<T> Sync for DropGuard<T>where
T: Sync,
impl<T> Unpin for DropGuard<T>where
T: Unpin,
impl<T> UnsafeUnpin for DropGuard<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DropGuard<T>where
T: UnwindSafe,
Blanket Implementations§
impl<M> AllowedSignal<M> for Mwhere
M: 'static,
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