Enum eventually::version::Check
source · pub enum Check {
Any,
MustBe(Version),
}
Expand description
Used to set a specific expectation during an operation that mutates some sort of resource (e.g. an Event Stream) that supports versioning.
It allows for optimistic locking, avoiding data races when modifying the same resource at the same time.
Variants§
Any
Disables any kind of optimistic locking check, allowing for any Version to be used compared to the new one.
MustBe(Version)
Expects that the previous Version used for the operation must have the value specified.
Trait Implementations§
source§impl PartialEq for Check
impl PartialEq for Check
impl Copy for Check
impl Eq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnwindSafe for Check
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