# Struct parking_lot::RawRwLock [−] [src]

    pub struct RawRwLock { /* fields omitted */ }

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

## Trait Implementations

### `impl RawRwLock for RawRwLock` [src]

#### `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]

Acquires an exclusive lock, blocking the current thread until it is able to do so.

#### `fn try_lock_exclusive(&self) -> bool` [src]

Attempts to acquire an exclusive lock without blocking.

#### `unsafe fn unlock_exclusive(&self)` [src]

Releases an exclusive lock. Read more

#### `fn lock_shared(&self)` [src]

Acquires a shared lock, blocking the current thread until it is able to do so.

#### `fn try_lock_shared(&self) -> bool` [src]

Attempts to acquire a shared lock without blocking.

#### `unsafe fn unlock_shared(&self)` [src]

Releases a shared lock. Read more

#### `fn is_locked(&self) -> bool` [src]

Checks if this `RwLock` is currently locked in any way.

### `impl RawRwLockDowngrade for RawRwLock` [src]

#### `unsafe fn downgrade(&self)` [src]

Atomically downgrades an exclusive lock into a shared lock without allowing any thread to take an exclusive lock in the meantime. Read more

### `impl RawRwLockFair for RawRwLock` [src]

#### `unsafe fn unlock_shared_fair(&self)` [src]

Releases a shared lock using a fair unlock protocol. Read more

#### `unsafe fn unlock_exclusive_fair(&self)` [src]

Releases an exclusive lock using a fair unlock protocol. Read more

#### `unsafe fn bump_shared(&self)` [src]

Temporarily yields a shared lock to a waiting thread if there is one. Read more

#### `unsafe fn bump_exclusive(&self)` [src]

Temporarily yields an exclusive lock to a waiting thread if there is one. Read more

### `impl RawRwLockRecursive for RawRwLock` [src]

#### `fn lock_shared_recursive(&self)` [src]

Acquires a shared lock without deadlocking in case of a recursive lock.

#### `fn try_lock_shared_recursive(&self) -> bool` [src]

Attempts to acquire a shared lock without deadlocking in case of a recursive lock.

### `impl RawRwLockRecursiveTimed for RawRwLock` [src]

#### `fn try_lock_shared_recursive_for(&self, timeout: Self::Duration) -> bool` [src]

Attempts to acquire a shared lock until a timeout is reached, without deadlocking in case of a recursive lock. Read more

#### `fn try_lock_shared_recursive_until(&self, timeout: Self::Instant) -> bool` [src]

Attempts to acquire a shared lock until a timeout is reached, without deadlocking in case of a recursive lock. Read more

### `impl RawRwLockTimed for RawRwLock` [src]

#### `type Duration = Duration`

Duration type used for `try_lock_for`.

#### `type Instant = Instant`

Instant type used for `try_lock_until`.

#### `fn try_lock_shared_for(&self, timeout: Self::Duration) -> bool` [src]

Attempts to acquire a shared lock until a timeout is reached.

#### `fn try_lock_shared_until(&self, timeout: Self::Instant) -> bool` [src]

Attempts to acquire a shared lock until a timeout is reached.

#### `fn try_lock_exclusive_for(&self, timeout: Duration) -> bool` [src]

Attempts to acquire an exclusive lock until a timeout is reached.

#### `fn try_lock_exclusive_until(&self, timeout: Instant) -> bool` [src]

Attempts to acquire an exclusive lock until a timeout is reached.

### `impl RawRwLockUpgrade for RawRwLock` [src]

#### `fn lock_upgradable(&self)` [src]

Acquires an upgradable lock, blocking the current thread until it is able to do so.

#### `fn try_lock_upgradable(&self) -> bool` [src]

Attempts to acquire an upgradable lock without blocking.

#### `unsafe fn unlock_upgradable(&self)` [src]

Releases an upgradable lock. Read more

#### `unsafe fn upgrade(&self)` [src]

Upgrades an upgradable lock to an exclusive lock. Read more

#### `unsafe fn try_upgrade(&self) -> bool` [src]

Attempts to upgrade an upgradable lock to an exclusive lock without blocking. Read more

### `impl RawRwLockUpgradeDowngrade for RawRwLock` [src]

#### `unsafe fn downgrade_upgradable(&self)` [src]

Downgrades an upgradable lock to a shared lock. Read more

#### `unsafe fn downgrade_to_upgradable(&self)` [src]

Downgrades an exclusive lock to an upgradable lock. Read more

### `impl RawRwLockUpgradeFair for RawRwLock` [src]

#### `unsafe fn unlock_upgradable_fair(&self)` [src]

Releases an upgradable lock using a fair unlock protocol. Read more

#### `unsafe fn bump_upgradable(&self)` [src]

Temporarily yields an upgradable lock to a waiting thread if there is one. Read more

### `impl RawRwLockUpgradeTimed for RawRwLock` [src]

#### `fn try_lock_upgradable_until(&self, timeout: Instant) -> bool` [src]

Attempts to acquire an upgradable lock until a timeout is reached.

#### `fn try_lock_upgradable_for(&self, timeout: Duration) -> bool` [src]

Attempts to acquire an upgradable lock until a timeout is reached.

#### `unsafe fn try_upgrade_until(&self, timeout: Instant) -> bool` [src]

Attempts to upgrade an upgradable lock to an exclusive lock until a timeout is reached. Read more

#### `unsafe fn try_upgrade_for(&self, timeout: Duration) -> bool` [src]

Attempts to upgrade an upgradable lock to an exclusive lock until a timeout is reached. Read more

## Auto Trait Implementations

### `impl RefUnwindSafe for RawRwLock`

### `impl Send for RawRwLock`

### `impl Sync for RawRwLock`

### `impl Unpin for RawRwLock`

### `impl UnwindSafe for RawRwLock`

## Blanket Implementations

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

### `impl<T> From<T> for T` [src]

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

#### `type Error = <U as TryFrom<T>>::Error`

The type returned in the event of a conversion error.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.