Trait read_write_api::ReadApi
source · pub trait ReadApi {
type Target;
type ReadGuard<'a>: Deref<Target = Self::Target>
where Self: 'a;
// Required method
fn read(&self) -> Self::ReadGuard<'_>;
}Expand description
Provides constant part of the ReadWriteApi interface.
Required Associated Types§
sourcetype Target
type Target
Dereference target of the return type of the
Self::read method.
sourcetype ReadGuard<'a>: Deref<Target = Self::Target>
where
Self: 'a
type ReadGuard<'a>: Deref<Target = Self::Target> where Self: 'a
Self::read return type.