Type Alias rustc_data_structures::sync::ReadGuard

source ·
pub type ReadGuard<'a, T> = RwLockReadGuard<'a, RawRwLock, T>;
Expand description

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

Aliased Type§

struct ReadGuard<'a, T> {
    rwlock: &'a RwLock<RawRwLock, T>,
    marker: PhantomData<(&'a T, GuardNoSend)>,
}

Fields§

§rwlock: &'a RwLock<RawRwLock, T>§marker: PhantomData<(&'a T, GuardNoSend)>

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes