pub struct OpaqueGuard<T>(/* private fields */);Expand description
Smart pointer to a registered opaque resource.
The resource remains valid until every guard is dropped, even if unregistered concurrently.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OpaqueGuard<T>
impl<T> RefUnwindSafe for OpaqueGuard<T>where
Arc<T>: RefUnwindSafe,
impl<T> Send for OpaqueGuard<T>
impl<T> Sync for OpaqueGuard<T>
impl<T> Unpin for OpaqueGuard<T>
impl<T> UnsafeUnpin for OpaqueGuard<T>where
Arc<T>: UnsafeUnpin,
impl<T> UnwindSafe for OpaqueGuard<T>where
Arc<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