pub struct Mutex<T: ?Sized> { /* private fields */ }
Expand description
An asynchronous mutex.
Implementations§
source§impl<T> Mutex<T>
impl<T> Mutex<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwraps the underlying data.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Mutex<T>
impl<T> !Send for Mutex<T>
impl<T> !Sync for Mutex<T>
impl<T: ?Sized> Unpin for Mutex<T>where T: Unpin,
impl<T> !UnwindSafe for Mutex<T>
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