#[repr(transparent)]
pub struct RawRwLock { /* private fields */ }
Expand description

Raw rwlock type implemented with lock-free userspace thread queues.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Marker type which determines whether a lock guard should be Send. Use one of the GuardSend or GuardNoSend helper types here. Read more

Initial value for an unlocked RwLock.

Checks if this RwLock is currently locked in any way.

Check if this RwLock is currently exclusively locked.

Attempts to acquire an exclusive lock without blocking.

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

Releases an exclusive lock. Read more

Attempts to acquire a shared lock without blocking.

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

Releases a shared lock. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.