pub struct RawMutex(RawMutex);Expand description
Raw implementation for a [lock_api::Mutex].
This will delegate to parking_lot if the std feature is enabled (which
it is by default). Otherwise, it will provide a !Sync implementation
similar to RefCell.
Tuple Fields§
§0: RawMutexImplementations§
Trait Implementations§
Source§impl RawMutex for RawMutex
impl RawMutex for RawMutex
Source§type GuardMarker = GuardNoSend
type GuardMarker = GuardNoSend
Marker type which determines whether a lock guard should be
Send. Use
one of the GuardSend or GuardNoSend helper types here.Source§impl RawMutexTimed for RawMutex
Available on crate feature std only.
impl RawMutexTimed for RawMutex
Available on crate feature
std only.Source§fn try_lock_for(&self, timeout: Self::Duration) -> bool
fn try_lock_for(&self, timeout: Self::Duration) -> bool
Attempts to acquire this lock until a timeout is reached.
Source§fn try_lock_until(&self, timeout: Self::Instant) -> bool
fn try_lock_until(&self, timeout: Self::Instant) -> bool
Attempts to acquire this lock until a timeout is reached.
Auto Trait Implementations§
impl !Freeze for RawMutex
impl RefUnwindSafe for RawMutex
impl Send for RawMutex
impl Sync for RawMutex
impl Unpin for RawMutex
impl UnwindSafe for RawMutex
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