Struct RawRwLock

pub struct RawRwLock { /* private fields */ }

Raw reader-writer lock type backed by the parking lot.

Trait Implementations

impl RawRwLock for RawRwLock

const INIT: RawRwLock = _;
type GuardMarker = GuardNoSend;
fn lock_exclusive(&self)
fn try_lock_exclusive(&self) -> bool
unsafe fn unlock_exclusive(&self)
fn lock_shared(&self)
fn try_lock_shared(&self) -> bool
unsafe fn unlock_shared(&self)
fn is_locked(&self) -> bool
fn is_locked_exclusive(&self) -> bool

impl RawRwLockDowngrade for RawRwLock

unsafe fn downgrade(&self)

impl RawRwLockFair for RawRwLock

unsafe fn unlock_shared_fair(&self)
unsafe fn unlock_exclusive_fair(&self)
unsafe fn bump_shared(&self)
unsafe fn bump_exclusive(&self)

impl RawRwLockRecursive for RawRwLock

fn lock_shared_recursive(&self)
fn try_lock_shared_recursive(&self) -> bool

impl RawRwLockRecursiveTimed for RawRwLock

fn try_lock_shared_recursive_for(&self, timeout: Self::Duration) -> bool
fn try_lock_shared_recursive_until(&self, timeout: Self::Instant) -> bool

impl RawRwLockTimed for RawRwLock

type Duration = Duration;
type Instant = Instant;
fn try_lock_shared_for(&self, timeout: Self::Duration) -> bool
fn try_lock_shared_until(&self, timeout: Self::Instant) -> bool
fn try_lock_exclusive_for(&self, timeout: Duration) -> bool
fn try_lock_exclusive_until(&self, timeout: Instant) -> bool

impl RawRwLockUpgrade for RawRwLock

fn lock_upgradable(&self)
fn try_lock_upgradable(&self) -> bool
unsafe fn unlock_upgradable(&self)
unsafe fn upgrade(&self)
unsafe fn try_upgrade(&self) -> bool

impl RawRwLockUpgradeDowngrade for RawRwLock

unsafe fn downgrade_upgradable(&self)
unsafe fn downgrade_to_upgradable(&self)

impl RawRwLockUpgradeFair for RawRwLock

unsafe fn unlock_upgradable_fair(&self)
unsafe fn bump_upgradable(&self)

impl RawRwLockUpgradeTimed for RawRwLock

fn try_lock_upgradable_until(&self, timeout: Instant) -> bool
fn try_lock_upgradable_for(&self, timeout: Duration) -> bool
unsafe fn try_upgrade_until(&self, timeout: Instant) -> bool
unsafe fn try_upgrade_for(&self, timeout: Duration) -> bool

Auto Trait Implementations

impl !Freeze for RawRwLock

impl RefUnwindSafe for RawRwLock

impl Send for RawRwLock

impl Sync for RawRwLock

impl Unpin for RawRwLock

impl UnsafeUnpin for RawRwLock

impl UnwindSafe for RawRwLock

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for RawRwLock

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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