Module concurrency_traits::rw_lock[][src]

Expand description

Traits for RwLocks

Structs

CustomReadGuard

The read guard for CustomRwLock

CustomRwLock

A custom rw lock that can be built from any RawTryRwLock variant

CustomWriteGuard

The write guard for CustomRwLock

RawAtomicRwLock

The raw portion of AtomicRwLock.

RawSpinRwLock

The raw portion of SpinRwLock.

Traits

AsyncRwLock

A generic async reader-writer lock trait

AsyncTimeoutRwLock

An async RwLock that can be timed out on

AsyncTimeoutUpgradeRwLock

An async rwlock that has read guards that can be upgraded asynchronously with a timeout.

AsyncTimoutUpgradeReadGuard

A read guard that can be upgraded to a write guard asynchronously with a timeout.

AsyncUpgradeReadGuard

A read guard that can be upgraded to a write guard asynchronously

AsyncUpgradeRwLock

An async rwlock that has read guards that can be upgraded asynchronously

DowngradeRwLock

An rwlock that has write guards that can be downgraded.

DowngradeWriteGuard

A write guard that can be downgraded.

RawAsyncRwLock

A raw async rw lock that stores no data

RawAsyncTimeoutRwLock

A raw async timeout rw lock that stores no data

RawAsyncTimeoutUpgradeRwLock

Raw version of AsyncTimeoutUpgradeRwLock.

RawAsyncUpgradeRwLock

Raw version of AsyncUpgradeRwLock.

RawDowngradeRwLock

A raw rw lock which has guards that can be downgraded.

RawRwLock

A raw rw lock that stores no data

RawTimeoutRwLock

A raw timeout rw lock that stores no data

RawTryRwLock

A raw try rw lock that stores no data

RawTryUpgradeRwLock

A raw rw lock which has guards that can try to be upgraded.

RawUpgradeRwLock

A raw rw lock which has guards that can be upgraded.

RawUpgradeTimeoutRwLock

A raw rw lock which has guards that can be upgraded on a timeout.

RwLock

A generic blocking reader-writer lock trait

RwLockSized

The functions for RwLock that only work for sized types. Separated to allow RwLock to be a trait object.

TimeoutRwLock

An RwLock that can be timed out on

TimeoutRwLockSized

The functions for TimeoutRwLock that only work for sized types. Separated to allow TimeoutRwLock to be a trait object.

TryRwLock

A non-blocking rwlock with try functions

TryRwLockSized

The functions for TryRwLock that only work for sized types. Separated to allow TryRwLock to be a trait object.

TryUpgradeReadGuard

A read guard that can be try to be upgraded to a write guard

TryUpgradeRwLock

An rwlock that has read guards that can try to be upgraded

UpgradeReadGuard

A read guard that can be upgraded to a write guard

UpgradeRwLock

An rwlock that has read guards that can be upgraded

UpgradeTimeoutReadGuard

A read guard that can be upgraded to a write guard

UpgradeTimeoutRwLock

An rwlock that has read guards that can be upgraded on a timeout.

Type Definitions

AtomicRwLock

A read-write lock that only supports try operations (TryRwLock).

SpinRwLock

A read-write lock that spins to wait. Should only be locked for short durations.