#[non_exhaustive]pub enum SetMode {
Isolated,
Atomic,
}Expand description
How a Foo/set method’s changes must apply.
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.
Isolated
§6.1: no other writer commits to the account between the method’s precondition reads and its writes. Each change still succeeds or fails on its own.
Atomic
§4: all of the method’s changes commit, or none do.
Trait Implementations§
impl Copy for SetMode
impl Eq for SetMode
impl StructuralPartialEq for SetMode
Auto Trait Implementations§
impl Forget for SetMode
impl Freeze for SetMode
impl Move for SetMode
impl RefUnwindSafe for SetMode
impl Send for SetMode
impl Sync for SetMode
impl Unpin for SetMode
impl UnsafeUnpin for SetMode
impl UnwindSafe for SetMode
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