Trait read_write_api::WriteApi
source · pub trait WriteApi {
type Target;
type WriteGuard<'a>: DerefMut<Target = Self::Target>
where Self: 'a;
// Required method
fn write(&mut self) -> Self::WriteGuard<'_>;
}Expand description
Provides mutable part of the ReadWriteApi interface.
Required Associated Types§
sourcetype Target
type Target
Dereference target of the return type of the
Self::write method.
sourcetype WriteGuard<'a>: DerefMut<Target = Self::Target>
where
Self: 'a
type WriteGuard<'a>: DerefMut<Target = Self::Target> where Self: 'a
Self::write return type.
Required Methods§
sourcefn write(&mut self) -> Self::WriteGuard<'_>
fn write(&mut self) -> Self::WriteGuard<'_>
[RwLock::write] analogue.