#[non_exhaustive]pub enum RecoveryError {
InvalidStaleThreshold,
InvalidMaxClockSkew,
ClockEvidenceUnusable,
OwnedByCurrentProcess,
NotStale {
inactivity: Duration,
threshold: StaleThreshold,
},
NotRecoverable {
status: BatchStatus,
},
Repository(RepositoryError),
}Expand description
A typed recovery-proposal failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidStaleThreshold
The configured stale threshold was outside 1 min..=24 h.
InvalidMaxClockSkew
The configured clock-skew bound was outside 100 ms..=60 s.
ClockEvidenceUnusable
Repository time, local wall time, or the monotonic observation window could not provide usable evidence.
OwnedByCurrentProcess
The execution is still owned by the inspecting process.
NotStale
The durable inactivity has not crossed the strict stale threshold.
Fields
§
threshold: StaleThresholdConfigured threshold.
NotRecoverable
The status is neither ambiguous nor an active stale candidate.
Fields
§
status: BatchStatusObserved durable status.
Repository(RepositoryError)
The repository could not produce evidence.
Trait Implementations§
Source§impl Clone for RecoveryError
impl Clone for RecoveryError
Source§fn clone(&self) -> RecoveryError
fn clone(&self) -> RecoveryError
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 RecoveryError
impl Debug for RecoveryError
Source§impl Display for RecoveryError
impl Display for RecoveryError
impl Eq for RecoveryError
Source§impl Error for RecoveryError
impl Error for RecoveryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RecoveryError
impl PartialEq for RecoveryError
impl StructuralPartialEq for RecoveryError
Auto Trait Implementations§
impl Freeze for RecoveryError
impl RefUnwindSafe for RecoveryError
impl Send for RecoveryError
impl Sync for RecoveryError
impl Unpin for RecoveryError
impl UnsafeUnpin for RecoveryError
impl UnwindSafe for RecoveryError
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