pub enum BatchOutcome {
Committed,
PreconditionFailed {
index: usize,
observed: Option<Value>,
},
DeadlinePassed {
backend_now: u64,
},
}Expand description
The result of NamespaceStore::apply.
Variants§
Committed
Every precondition held and every write is durable.
PreconditionFailed
preconditions[index], a key precondition, failed; nothing was
written.
Fields
§
observed: Option<Value>What the store saw (see Precondition).
DeadlinePassed
A Precondition::NotAfter deadline had passed on the backend’s
clock (normative rule 8); nothing was written.
Trait Implementations§
Source§impl Clone for BatchOutcome
impl Clone for BatchOutcome
Source§impl Debug for BatchOutcome
impl Debug for BatchOutcome
impl Eq for BatchOutcome
Source§impl PartialEq for BatchOutcome
impl PartialEq for BatchOutcome
impl StructuralPartialEq for BatchOutcome
Auto Trait Implementations§
impl !Freeze for BatchOutcome
impl RefUnwindSafe for BatchOutcome
impl Send for BatchOutcome
impl Sync for BatchOutcome
impl Unpin for BatchOutcome
impl UnsafeUnpin for BatchOutcome
impl UnwindSafe for BatchOutcome
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