pub struct Owned<G: Guard<V>, V: Value> { /* private fields */ }Expand description
Guard that provides read-only access to a removed value while preventing the value from being freed. Retires the value on drop.
Note: this value may still be concurrently accessed by other threads, so this guard cannot safely provide mutable access.
Trait Implementations§
Auto Trait Implementations§
impl<G, V> Freeze for Owned<G, V>
impl<G, V> RefUnwindSafe for Owned<G, V>
impl<G, V> Send for Owned<G, V>
impl<G, V> Sync for Owned<G, V>
impl<G, V> Unpin for Owned<G, V>
impl<G, V> UnsafeUnpin for Owned<G, V>
impl<G, V> UnwindSafe for Owned<G, V>
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