Struct RawMutex

pub struct RawMutex { /* private fields */ }

Raw mutex type backed by the parking lot.

Trait Implementations

impl RawMutex for RawMutex

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

impl RawMutexFair for RawMutex

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

impl RawMutexTimed for RawMutex

type Duration = Duration;
type Instant = Instant;
fn try_lock_until(&self, timeout: Instant) -> bool
fn try_lock_for(&self, timeout: Duration) -> bool

Auto Trait Implementations

impl !Freeze for RawMutex

impl RefUnwindSafe for RawMutex

impl Send for RawMutex

impl Sync for RawMutex

impl Unpin for RawMutex

impl UnsafeUnpin for RawMutex

impl UnwindSafe for RawMutex

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for RawMutex

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for RawMutex 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 RawMutex where U: Into<T>,

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

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

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