pub struct RawRwLock { /* private fields */ }

Trait Implementations

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.

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. Read more

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

Attempts to acquire an exclusive lock without blocking.

Releases an exclusive lock. Read more

Checks if this RwLock is currently locked in any way.

Check if this RwLock is currently exclusively locked.

Atomically downgrades an exclusive lock into a shared lock without allowing any thread to take an exclusive lock in the meantime. 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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.