Struct bones_ecs::prelude::bones_utils::prelude::parking_lot::RawFairMutex
pub struct RawFairMutex(/* private fields */);
Expand description
Raw fair mutex type backed by the parking lot.
Trait Implementations§
§impl RawMutex for RawFairMutex
impl RawMutex for RawFairMutex
§const INIT: RawFairMutex = _
const INIT: RawFairMutex = _
Initial value for an unlocked mutex.
§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.§impl RawMutexFair for RawFairMutex
impl RawMutexFair for RawFairMutex
§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
.§fn try_lock_until(
&self,
timeout: <RawFairMutex as RawMutexTimed>::Instant
) -> bool
fn try_lock_until( &self, timeout: <RawFairMutex as RawMutexTimed>::Instant ) -> bool
Attempts to acquire this lock until a timeout is reached.
§fn try_lock_for(
&self,
timeout: <RawFairMutex as RawMutexTimed>::Duration
) -> bool
fn try_lock_for( &self, timeout: <RawFairMutex as RawMutexTimed>::Duration ) -> bool
Attempts to acquire this lock until a timeout is reached.
Auto Trait Implementations§
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