pub struct RWReadMode<'self, T> { data: &'self T, token: RWLockReadMode<'self>, }
The "read permission" token used for RWArc.write_downgrade().
impl<'self, T: std::kinds::Freeze + std::kinds::Send> RWReadMode<'self, T>
fn read<U>(&self, blk: &fn(x: &T) -> 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
).