pub struct Updated<G: Guard<V>, V: Value> { /* private fields */ }Expand description
Guard that provides read-only access to both the old and new values of an atomic update operation, preventing both from being freed.
Retires the old value on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<G, V> Freeze for Updated<G, V>
impl<G, V> RefUnwindSafe for Updated<G, V>
impl<G, V> Send for Updated<G, V>
impl<G, V> Sync for Updated<G, V>
impl<G, V> Unpin for Updated<G, V>
impl<G, V> UnsafeUnpin for Updated<G, V>
impl<G, V> UnwindSafe for Updated<G, V>
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