#[non_exhaustive]pub enum FaultStateFormatError {
UnsupportedFormat,
UnsupportedSchemaVersion,
Malformed,
MalformedEntry,
UnknownEnumeration,
ChecksumMismatch,
TooLarge {
max_bytes: usize,
},
TooManyEntries {
max: usize,
},
DuplicateKey,
UnsortedEntries,
OrdinalAboveLimit {
max: u32,
},
CheckpointMismatch,
}Expand description
A value-redacted durable fault-state format failure.
Every variant is corruption or an unsupported version. The runtime fails closed before any component work begins.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnsupportedFormat
The stored format identifier or version is not format 1.
UnsupportedSchemaVersion
The stored schema version is newer than this runtime understands.
Malformed
The payload was not canonical fault-state JSON.
MalformedEntry
One entry was not a valid fault-state entry object.
UnknownEnumeration
A stored phase or category name is not a known enumeration value.
ChecksumMismatch
The stored checksum does not cover the stored payload.
TooLarge
The payload exceeded the durable byte ceiling.
TooManyEntries
The payload retained more keys than the accepted bound.
DuplicateKey
The payload retained the same retry key twice.
UnsortedEntries
The payload was not sorted by retry-key digest.
OrdinalAboveLimit
A retained ordinal is above the configured retry limit.
CheckpointMismatch
The retained keys do not belong to the committed checkpoint.
Trait Implementations§
Source§impl Clone for FaultStateFormatError
impl Clone for FaultStateFormatError
Source§fn clone(&self) -> FaultStateFormatError
fn clone(&self) -> FaultStateFormatError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for FaultStateFormatError
Source§impl Debug for FaultStateFormatError
impl Debug for FaultStateFormatError
Source§impl Display for FaultStateFormatError
impl Display for FaultStateFormatError
impl Eq for FaultStateFormatError
Source§impl Error for FaultStateFormatError
impl Error for FaultStateFormatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<FaultStateFormatError> for FaultStateError
impl From<FaultStateFormatError> for FaultStateError
Source§fn from(error: FaultStateFormatError) -> Self
fn from(error: FaultStateFormatError) -> Self
Source§impl PartialEq for FaultStateFormatError
impl PartialEq for FaultStateFormatError
impl StructuralPartialEq for FaultStateFormatError
Auto Trait Implementations§
impl Freeze for FaultStateFormatError
impl RefUnwindSafe for FaultStateFormatError
impl Send for FaultStateFormatError
impl Sync for FaultStateFormatError
impl Unpin for FaultStateFormatError
impl UnsafeUnpin for FaultStateFormatError
impl UnwindSafe for FaultStateFormatError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more