pub enum ExpectedVersion {
Any,
Exact(u64),
NotExists,
}Expand description
Expected optimistic version carried by a staged table write.
Variants§
Any
No optimistic version check is requested.
Exact(u64)
The target row must currently have this version.
NotExists
The target row must not exist yet.
Trait Implementations§
Source§impl Clone for ExpectedVersion
impl Clone for ExpectedVersion
Source§fn clone(&self) -> ExpectedVersion
fn clone(&self) -> ExpectedVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpectedVersion
impl Debug for ExpectedVersion
Source§impl Default for ExpectedVersion
impl Default for ExpectedVersion
Source§fn default() -> ExpectedVersion
fn default() -> ExpectedVersion
Returns the “default value” for a type. Read more
impl Eq for ExpectedVersion
Source§impl PartialEq for ExpectedVersion
impl PartialEq for ExpectedVersion
impl StructuralPartialEq for ExpectedVersion
Auto Trait Implementations§
impl Freeze for ExpectedVersion
impl RefUnwindSafe for ExpectedVersion
impl Send for ExpectedVersion
impl Sync for ExpectedVersion
impl Unpin for ExpectedVersion
impl UnsafeUnpin for ExpectedVersion
impl UnwindSafe for ExpectedVersion
Blanket Implementations§
Source§impl<T> AggregateBuilder for T
impl<T> AggregateBuilder for T
fn aggregate<A: Aggregate>(self) -> AggregateRepository<Self, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Queueable for T
impl<T> Queueable for T
Source§fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
Wrap with the default async lock manager. Pair with
.aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_with<L: LockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.