pub struct RWLockReadMode<'self> { priv lock: &'self RWLock, priv token: std::util::NonCopyable, }
The "read permission" token used for rwlock.write_downgrade().
impl<'self> RWLockReadMode<'self>
fn read<U>(&self, blk: &fn() -> U) -> U
Access the post-downgrade rwlock in read mode.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).