pub struct Upserted<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 upsert operation, preventing both from being freed.
Retires the old value on drop, if it existed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<G, V> Freeze for Upserted<G, V>
impl<G, V> RefUnwindSafe for Upserted<G, V>
impl<G, V> Send for Upserted<G, V>
impl<G, V> Sync for Upserted<G, V>
impl<G, V> Unpin for Upserted<G, V>
impl<G, V> UnsafeUnpin for Upserted<G, V>
impl<G, V> UnwindSafe for Upserted<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