[−][src]Struct parking_lot::RawRwLock
Raw reader-writer lock type backed by the parking lot.
Trait Implementations
impl RawRwLock for RawRwLock
[src]
impl RawRwLock for RawRwLock
const INIT: RawRwLock
[src]
Initial value for an unlocked RwLock
.
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_exclusive(&self)
[src]
fn lock_exclusive(&self)
Acquires an exclusive lock, blocking the current thread until it is able to do so.
fn try_lock_exclusive(&self) -> bool
[src]
fn try_lock_exclusive(&self) -> bool
Attempts to acquire an exclusive lock without blocking.
fn unlock_exclusive(&self)
[src]
fn unlock_exclusive(&self)
Releases an exclusive lock.
Acquires a shared lock, blocking the current thread until it is able to do so.
Attempts to acquire a shared lock without blocking.
Releases a shared lock.
impl RawRwLockFair for RawRwLock
[src]
impl RawRwLockFair for RawRwLock
Releases a shared lock using a fair unlock protocol.
fn unlock_exclusive_fair(&self)
[src]
fn unlock_exclusive_fair(&self)
Releases an exclusive lock using a fair unlock protocol.
Temporarily yields a shared lock to a waiting thread if there is one. Read more
fn bump_exclusive(&self)
[src]
fn bump_exclusive(&self)
Temporarily yields an exclusive lock to a waiting thread if there is one. Read more
impl RawRwLockDowngrade for RawRwLock
[src]
impl RawRwLockDowngrade for RawRwLock
fn downgrade(&self)
[src]
fn downgrade(&self)
Atomically downgrades an exclusive lock into a shared lock without allowing any thread to take an exclusive lock in the meantime. Read more
impl RawRwLockTimed for RawRwLock
[src]
impl RawRwLockTimed for RawRwLock
type Duration = Duration
Duration type used for try_lock_for
.
type Instant = Instant
Instant type used for try_lock_until
.
Attempts to acquire a shared lock until a timeout is reached.
Attempts to acquire a shared lock until a timeout is reached.
fn try_lock_exclusive_for(&self, timeout: Duration) -> bool
[src]
fn try_lock_exclusive_for(&self, timeout: Duration) -> bool
Attempts to acquire an exclusive lock until a timeout is reached.
fn try_lock_exclusive_until(&self, timeout: Instant) -> bool
[src]
fn try_lock_exclusive_until(&self, timeout: Instant) -> bool
Attempts to acquire an exclusive lock until a timeout is reached.
impl RawRwLockRecursive for RawRwLock
[src]
impl RawRwLockRecursive for RawRwLock
Acquires a shared lock without deadlocking in case of a recursive lock.
Attempts to acquire a shared lock without deadlocking in case of a recursive lock.
impl RawRwLockRecursiveTimed for RawRwLock
[src]
impl RawRwLockRecursiveTimed for RawRwLock
Attempts to acquire a shared lock until a timeout is reached, without deadlocking in case of a recursive lock. Read more
Attempts to acquire a shared lock until a timeout is reached, without deadlocking in case of a recursive lock. Read more
impl RawRwLockUpgrade for RawRwLock
[src]
impl RawRwLockUpgrade for RawRwLock
fn lock_upgradable(&self)
[src]
fn lock_upgradable(&self)
Acquires an upgradable lock, blocking the current thread until it is able to do so.
fn try_lock_upgradable(&self) -> bool
[src]
fn try_lock_upgradable(&self) -> bool
Attempts to acquire an upgradable lock without blocking.
fn unlock_upgradable(&self)
[src]
fn unlock_upgradable(&self)
Releases an upgradable lock.
fn upgrade(&self)
[src]
fn upgrade(&self)
Upgrades an upgradable lock to an exclusive lock.
fn try_upgrade(&self) -> bool
[src]
fn try_upgrade(&self) -> bool
Attempts to upgrade an upgradable lock to an exclusive lock without blocking. Read more
impl RawRwLockUpgradeFair for RawRwLock
[src]
impl RawRwLockUpgradeFair for RawRwLock
fn unlock_upgradable_fair(&self)
[src]
fn unlock_upgradable_fair(&self)
Releases an upgradable lock using a fair unlock protocol.
fn bump_upgradable(&self)
[src]
fn bump_upgradable(&self)
Temporarily yields an upgradable lock to a waiting thread if there is one. Read more
impl RawRwLockUpgradeDowngrade for RawRwLock
[src]
impl RawRwLockUpgradeDowngrade for RawRwLock
fn downgrade_upgradable(&self)
[src]
fn downgrade_upgradable(&self)
Downgrades an upgradable lock to a shared lock.
fn downgrade_to_upgradable(&self)
[src]
fn downgrade_to_upgradable(&self)
Downgrades an exclusive lock to an upgradable lock.
impl RawRwLockUpgradeTimed for RawRwLock
[src]
impl RawRwLockUpgradeTimed for RawRwLock
fn try_lock_upgradable_until(&self, timeout: Instant) -> bool
[src]
fn try_lock_upgradable_until(&self, timeout: Instant) -> bool
Attempts to acquire an upgradable lock until a timeout is reached.
fn try_lock_upgradable_for(&self, timeout: Duration) -> bool
[src]
fn try_lock_upgradable_for(&self, timeout: Duration) -> bool
Attempts to acquire an upgradable lock until a timeout is reached.
fn try_upgrade_until(&self, timeout: Instant) -> bool
[src]
fn try_upgrade_until(&self, timeout: Instant) -> bool
Attempts to upgrade an upgradable lock to an exclusive lock until a timeout is reached. Read more
fn try_upgrade_for(&self, timeout: Duration) -> bool
[src]
fn try_upgrade_for(&self, timeout: Duration) -> bool
Attempts to upgrade an upgradable lock to an exclusive lock until a timeout is reached. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for 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 T
Mutably 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