pub enum Expected {
Any,
Exact(u32),
}Expand description
Specifies the optimistic locking level when performing append from
an EventStore.
Check out append documentation for more info.
Variants§
Any
Append events disregarding the current Aggregate version.
Exact(u32)
Append events only if the current version of the Aggregate
is the one specified by the value provided here.
Trait Implementations§
impl Copy for Expected
impl Eq for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnwindSafe for Expected
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