pub struct UmbraOwner<T> { /* private fields */ }Expand description
RAII wrapper for an UmbraPointer<T> whose target was heap-allocated
via UmbraPointer::with_content_prefix or
UmbraPointer::with_hash_prefix. Drops the boxed target when the
owner is dropped.
Implementations§
Trait Implementations§
Source§impl<T> Drop for UmbraOwner<T>
impl<T> Drop for UmbraOwner<T>
Auto Trait Implementations§
impl<T> Freeze for UmbraOwner<T>where
UmbraPointer<T>: Freeze,
impl<T> RefUnwindSafe for UmbraOwner<T>where
UmbraPointer<T>: RefUnwindSafe,
impl<T> Send for UmbraOwner<T>where
UmbraPointer<T>: Send,
impl<T> Sync for UmbraOwner<T>where
UmbraPointer<T>: Sync,
impl<T> Unpin for UmbraOwner<T>where
UmbraPointer<T>: Unpin,
impl<T> UnsafeUnpin for UmbraOwner<T>where
UmbraPointer<T>: UnsafeUnpin,
impl<T> UnwindSafe for UmbraOwner<T>where
UmbraPointer<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