pub enum Update<'g, K, V, S>{
Absent {
new: Option<V>,
},
Success(Updated<'g, K, V, S>),
Break {
old: Shared<'g, K, V, S>,
new: Option<V>,
},
}Expand description
Outcome of a call to ConcurrentMap::update_with.
Variants§
Absent
Key was not present.
Success(Updated<'g, K, V, S>)
Value was successfully updated.
Break
Closure returned core::ops::ControlFlow::Break.
Auto Trait Implementations§
impl<'g, K, V, S> Freeze for Update<'g, K, V, S>
impl<'g, K, V, S> RefUnwindSafe for Update<'g, K, V, S>
impl<'g, K, V, S> Send for Update<'g, K, V, S>
impl<'g, K, V, S> Sync for Update<'g, K, V, S>
impl<'g, K, V, S> Unpin for Update<'g, K, V, S>
impl<'g, K, V, S> UnsafeUnpin for Update<'g, K, V, S>
impl<'g, K, V, S> UnwindSafe for Update<'g, K, V, S>
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