[−][src]Struct parking_lot::RawMutex
Raw mutex type backed by the parking lot.
Trait Implementations
impl RawMutex for RawMutex[src]
impl RawMutex for RawMutexconst INIT: RawMutex[src]
Initial value for an unlocked mutex.
type GuardMarker = GuardNoSend
Marker type which determines whether a lock guard should be Send. Use one of the GuardSend or GuardNoSend helper types here. Read more
fn lock(&self)[src]
fn lock(&self)Acquires this mutex, blocking the current thread until it is able to do so.
fn try_lock(&self) -> bool[src]
fn try_lock(&self) -> boolAttempts to acquire this mutex without blocking.
fn unlock(&self)[src]
fn unlock(&self)Unlocks this mutex.
impl RawMutexFair for RawMutex[src]
impl RawMutexFair for RawMutexfn unlock_fair(&self)[src]
fn unlock_fair(&self)Unlocks this mutex using a fair unlock protocol.
fn bump(&self)[src]
fn bump(&self)Temporarily yields the mutex to a waiting thread if there is one. Read more
impl RawMutexTimed for RawMutex[src]
impl RawMutexTimed for RawMutextype Duration = Duration
Duration type used for try_lock_for.
type Instant = Instant
Instant type used for try_lock_until.
fn try_lock_until(&self, timeout: Instant) -> bool[src]
fn try_lock_until(&self, timeout: Instant) -> boolAttempts to acquire this lock until a timeout is reached.
fn try_lock_for(&self, timeout: Duration) -> bool[src]
fn try_lock_for(&self, timeout: Duration) -> boolAttempts to acquire this lock until a timeout is reached.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Erased for T[src]
impl<T> Erased for T