pub struct SharedReader<Value> { /* private fields */ }Expand description
Gives read-only access to one shared value.
The reader sees writes to that value even after the original Shared handle switches to another value.
Its callback receives &Value, never &mut Value. Interior mutability still works through that reference.
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more