pub struct Owner<T, Codec = Default> { /* private fields */ }Available on crate feature
robj only.Expand description
The owner of RwLocks holding a shared value.
All acquired locks become invalid when this is dropped.
See module-level documentation for details.
Implementations§
source§impl<T, Codec> Owner<T, Codec>
impl<T, Codec> Owner<T, Codec>
sourcepub async fn into_inner(self) -> T
pub async fn into_inner(self) -> T
Makes all acquired locks invalid and returns the shared value.
Trait Implementations§
Auto Trait Implementations§
impl<T, Codec = Json> !RefUnwindSafe for Owner<T, Codec>
impl<T, Codec> Send for Owner<T, Codec>
impl<T, Codec> Sync for Owner<T, Codec>
impl<T, Codec> Unpin for Owner<T, Codec>where
Codec: Unpin,
impl<T, Codec = Json> !UnwindSafe for Owner<T, Codec>
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