Struct parking_lot::raw_fair_mutex::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
§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
§type Duration = <RawMutex as RawMutexTimed>::Duration
type Duration = <RawMutex as RawMutexTimed>::Duration
Duration type used for
try_lock_for
.§type Instant = <RawMutex as RawMutexTimed>::Instant
type Instant = <RawMutex as RawMutexTimed>::Instant
Instant type used for
try_lock_until
.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