Struct RawFairMutex

pub struct RawFairMutex(/* private field */);

Raw fair mutex type backed by the parking lot.

Trait Implementations

impl RawMutex for RawFairMutex

const INIT: Self = _;
type GuardMarker = <RawMutex as RawMutex>::GuardMarker;
fn lock(&self)
fn try_lock(&self) -> bool
unsafe fn unlock(&self)
fn is_locked(&self) -> bool

impl RawMutexFair for RawFairMutex

unsafe fn unlock_fair(&self)
unsafe fn bump(&self)

impl RawMutexTimed for RawFairMutex

type Duration = <RawMutex as RawMutexTimed>::Duration;
type Instant = <RawMutex as RawMutexTimed>::Instant;
fn try_lock_until(&self, timeout: Self::Instant) -> bool
fn try_lock_for(&self, timeout: Self::Duration) -> bool

Auto Trait Implementations

impl !Freeze for RawFairMutex

impl RefUnwindSafe for RawFairMutex

impl Send for RawFairMutex

impl Sync for RawFairMutex

impl Unpin for RawFairMutex

impl UnsafeUnpin for RawFairMutex

impl UnwindSafe for RawFairMutex

Blanket Implementations

impl<T> Any for RawFairMutex where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RawFairMutex where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for RawFairMutex where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for RawFairMutex

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for RawFairMutex where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for RawFairMutex where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for RawFairMutex where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>