pub struct Mutex { /* private fields */ }Available on crate features
mutex or serialized only.Implementations§
Source§impl Mutex
impl Mutex
pub fn new(recursive: bool) -> Option<Self>
Available on crate feature
mutex only.pub fn close(self)
Available on crate feature
mutex only.pub fn as_ref(&self) -> MutexRef<'_>
Available on crate feature
mutex only.pub fn lock(&self) -> MutexGuard<'_>
Available on crate feature
mutex only.pub fn try_lock(&self) -> Option<MutexGuard<'_>>
Available on crate feature
mutex only.Trait Implementations§
impl Eq for Mutex
Available on crate feature
mutex only.impl StructuralPartialEq for Mutex
Available on crate feature
mutex only.Auto Trait Implementations§
impl Freeze for Mutex
impl RefUnwindSafe for Mutex
impl !Send for Mutex
impl !Sync for Mutex
impl Unpin for Mutex
impl UnsafeUnpin for Mutex
impl UnwindSafe for Mutex
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