Struct parking_lot::RawFairMutex
source · pub struct RawFairMutex(RawMutex);
Expand description
Raw fair mutex type backed by the parking lot.
Tuple Fields§
§0: RawMutex
Trait Implementations§
source§impl RawMutex for RawFairMutex
impl RawMutex for RawFairMutex
source§type GuardMarker = <RawMutex as RawMutex>::GuardMarker
type GuardMarker = <RawMutex as RawMutex>::GuardMarker
Marker type which determines whether a lock guard should be
Send
. Use
one of the GuardSend
or GuardNoSend
helper types here.source§impl RawMutexFair for RawFairMutex
impl RawMutexFair for RawFairMutex
source§impl RawMutexTimed for RawFairMutex
impl RawMutexTimed for RawFairMutex
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.
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.
Auto Trait Implementations§
impl !Freeze for RawFairMutex
impl RefUnwindSafe for RawFairMutex
impl Send for RawFairMutex
impl Sync for RawFairMutex
impl Unpin for RawFairMutex
impl UnwindSafe for RawFairMutex
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