Trait read_write_api::WriteApi
source · pub trait WriteApi: GuardedTarget {
type WriteGuard<'a>: DerefMut<Target = Self::Target>
where Self: 'a;
// Required method
fn write(&mut self) -> Self::WriteGuard<'_>;
}
Expand description
Provides a mutable part of the RwApi
interface.
Required Associated Types§
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.