#[non_exhaustive]pub enum CasResult {
Applied(Option<Version>),
Conflict,
}Expand description
The outcome of a scoped compare-and-exchange.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Applied(Option<Version>)
The write was applied. A replacement has a fresh version; deletion has
no resulting entry and therefore returns None.
Conflict
The expected version did not match. No current entry is disclosed.
Trait Implementations§
impl Eq for CasResult
impl StructuralPartialEq for CasResult
Auto Trait Implementations§
impl Freeze for CasResult
impl RefUnwindSafe for CasResult
impl Send for CasResult
impl Sync for CasResult
impl Unpin for CasResult
impl UnsafeUnpin for CasResult
impl UnwindSafe for CasResult
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