Struct style::shared_lock::Locked
[−]
[src]
pub struct Locked<T> { /* fields omitted */ }
Data protect by a shared lock.
Methods
impl<T> Locked<T>
[src]
ⓘImportant traits for &'a mut Wpub fn read_with<'a>(&'a self, guard: &'a SharedRwLockReadGuard) -> &'a T
[src]
ⓘImportant traits for &'a mut W
Access the data for reading.
ⓘImportant traits for &'a mut Wpub fn write_with<'a>(
&'a self,
guard: &'a mut SharedRwLockWriteGuard
) -> &'a mut T
[src]
ⓘImportant traits for &'a mut W
&'a self,
guard: &'a mut SharedRwLockWriteGuard
) -> &'a mut T
Access the data for writing.