pub enum LeaseCausalityError {
UnknownRun {
run_id: RunId,
event: LeaseEventKind,
},
InvalidRunState {
run_id: RunId,
event: LeaseEventKind,
state: RunState,
},
MissingActiveLease {
run_id: RunId,
event: LeaseEventKind,
},
LeaseAlreadyActive {
run_id: RunId,
},
OwnerMismatch {
run_id: RunId,
event: LeaseEventKind,
expected_owner: String,
actual_owner: String,
},
ExpiryMismatch {
run_id: RunId,
event: LeaseEventKind,
expected_expiry: u64,
actual_expiry: u64,
},
NonMonotonicHeartbeatExpiry {
run_id: RunId,
previous_expiry: u64,
proposed_expiry: u64,
},
}Expand description
Typed lease replay causality failures.
Variants§
UnknownRun
Lease event references a run ID that has not been created.
Fields
§
event: LeaseEventKindLease event kind being validated.
InvalidRunState
Lease event is not allowed from the run’s current state.
Fields
§
event: LeaseEventKindLease event kind being validated.
MissingActiveLease
Lease mutation event requires an active lease projection but none exists.
Fields
§
event: LeaseEventKindLease event kind being validated.
LeaseAlreadyActive
Lease acquire encountered an already-active lease for the run.
OwnerMismatch
Lease event owner did not match active lease owner.
Fields
§
event: LeaseEventKindLease event kind being validated.
ExpiryMismatch
Lease event expiry did not match active lease expiry.
Fields
§
event: LeaseEventKindLease event kind being validated.
NonMonotonicHeartbeatExpiry
Heartbeat attempted to regress lease expiry.
Trait Implementations§
Source§impl Clone for LeaseCausalityError
impl Clone for LeaseCausalityError
Source§fn clone(&self) -> LeaseCausalityError
fn clone(&self) -> LeaseCausalityError
Returns a duplicate of the value. Read more
1.0.0 · 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 LeaseCausalityError
impl Debug for LeaseCausalityError
Source§impl Display for LeaseCausalityError
impl Display for LeaseCausalityError
Source§impl PartialEq for LeaseCausalityError
impl PartialEq for LeaseCausalityError
impl Eq for LeaseCausalityError
impl StructuralPartialEq for LeaseCausalityError
Auto Trait Implementations§
impl Freeze for LeaseCausalityError
impl RefUnwindSafe for LeaseCausalityError
impl Send for LeaseCausalityError
impl Sync for LeaseCausalityError
impl Unpin for LeaseCausalityError
impl UnsafeUnpin for LeaseCausalityError
impl UnwindSafe for LeaseCausalityError
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