Struct lair_keystore::dependencies::parking_lot::RawFairMutex
[−]pub struct RawFairMutex(_);
Expand description
Raw fair mutex type backed by the parking lot.
Trait Implementations
impl RawMutex for RawFairMutex
impl RawMutex for RawFairMutex
const INIT: RawFairMutex = RawFairMutex(::INIT)
const INIT: RawFairMutex = RawFairMutex(::INIT)
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. Read more
fn lock(&self)
fn lock(&self)
Acquires this mutex, blocking the current thread until it is able to do so.
impl RawMutexFair for RawFairMutex
impl RawMutexFair for RawFairMutex
unsafe fn unlock_fair(&self)
unsafe fn unlock_fair(&self)
Unlocks this mutex using a fair unlock protocol. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more