#[non_exhaustive]pub enum DefinitionError {
Show 13 variants
ZeroStartLimit,
EmptyToken {
kind: DefinitionTokenKind,
},
TokenTooLong {
kind: DefinitionTokenKind,
max_bytes: usize,
},
SurroundingWhitespace {
kind: DefinitionTokenKind,
},
ControlCharacter {
kind: DefinitionTokenKind,
},
ManifestEncoding,
ManifestTooLarge {
max_bytes: usize,
},
UpgradeSelfEdge,
EmptyStepMapping,
DuplicateSourceStep,
DuplicateTargetStep,
DeliveryModeMismatch,
CompatibilityLowering,
}Expand description
Failure to construct a bounded restart definition.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ZeroStartLimit
A start limit of zero can never start its step.
EmptyToken
A required token was empty.
Fields
kind: DefinitionTokenKindRejected token category.
TokenTooLong
A token exceeded its UTF-8 byte bound.
Fields
kind: DefinitionTokenKindRejected token category.
SurroundingWhitespace
A token had leading or trailing whitespace.
Fields
kind: DefinitionTokenKindRejected token category.
ControlCharacter
A token contained a control character.
Fields
kind: DefinitionTokenKindRejected token category.
ManifestEncoding
The canonical manifest could not be encoded.
ManifestTooLarge
The canonical manifest exceeded its durable bound.
UpgradeSelfEdge
A directed edge pointed from a definition to itself.
EmptyStepMapping
A directed edge omitted its durable step mapping.
DuplicateSourceStep
A source step appeared more than once.
DuplicateTargetStep
Two source steps mapped to the same target step.
DeliveryModeMismatch
A step’s fault runtime declared a different delivery mode than its restart contract.
CompatibilityLowering
A one-step wrapper could not be lowered into its compatibility plan.
The framework derives the compatibility graph from values it has already validated, so this variant reports a framework invariant rather than an application mistake.
Trait Implementations§
Source§impl Clone for DefinitionError
impl Clone for DefinitionError
Source§fn clone(&self) -> DefinitionError
fn clone(&self) -> DefinitionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DefinitionError
impl Debug for DefinitionError
Source§impl Display for DefinitionError
impl Display for DefinitionError
impl Eq for DefinitionError
Source§impl Error for DefinitionError
impl Error for DefinitionError
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()