pub struct Mutex<T: ?Sized> { /* private fields */ }Expand description
Lock-free mutex.
Does not provide waiting mechanism.
Implementations§
Source§impl<T> Mutex<T>
impl<T> Mutex<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes this mutex, returning the underlying data.
Trait Implementations§
impl<T: ?Sized> RefUnwindSafe for Mutex<T>
impl<T: Send + ?Sized> Send for Mutex<T>
impl<T: Send + ?Sized> Sync for Mutex<T>
impl<T: ?Sized> UnwindSafe for Mutex<T>
Auto Trait Implementations§
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