Struct std::sys_common::rwlock::StaticRWLock[][src]

pub struct StaticRWLock(RWLock);
Expand description

An OS-based reader-writer lock, meant for use in static variables.

This rwlock does not implement poisoning.

This rwlock has a const constructor (StaticRWLock::new), does not implement Drop to cleanup resources.

Tuple Fields

0: RWLock

Implementations

Creates a new rwlock for use.

Acquires shared access to the underlying lock, blocking the current thread to do so.

The lock is automatically unlocked when the returned guard is dropped.

Acquires write access to the underlying lock, blocking the current thread to do so.

The lock is automatically unlocked when the returned guard is dropped.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.