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