pub struct RwLockReadGuard<'a, T>where
    T: ?Sized,
{ /* private fields */ }
Expand description

RAII structure used to release the shared read access of a lock when dropped.

This structure is created by the read method on RwLock.

Implementations§

Makes a new RwLockReadGuard for a component of the locked data.

This operation cannot fail as data is already locked.

This is an associated function that needs to be used as RwLockReadGuard::map(...). A method would interfere with methods of the same name on the contents of the underlying data used through Deref.

Tries to make a new RwLockReadGuard for a component of the locked data. Returns the original read guard if the closure returns None.

This operation cannot fail as data is already locked.

This is an associated function that needs to be used as RwLockReadGuard::filter_map(...). A method would interfere with methods of the same name on the contents of the underlying data used through Deref.

This function is not available before Rust 1.63.

Trait Implementations§

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more