pub struct NamespaceHandle { /* private fields */ }Expand description
A thin Namespace wrapper to revoke cloning permissions on Arc<Namespace>.
This type allows the nvme_driver to force system-wide single-ownership
semantics for Namespace objects.
Because the end-user can no longer call namespace.clone(), weak.upgrade() can
safely be used to determine when a Namespace is no longer in use by the disk.
Implementations§
Trait Implementations§
Source§impl Debug for NamespaceHandle
impl Debug for NamespaceHandle
Source§impl Deref for NamespaceHandle
impl Deref for NamespaceHandle
Auto Trait Implementations§
impl Freeze for NamespaceHandle
impl !RefUnwindSafe for NamespaceHandle
impl Send for NamespaceHandle
impl Sync for NamespaceHandle
impl Unpin for NamespaceHandle
impl !UnwindSafe for NamespaceHandle
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