pub enum SerialPlanError {
Show 17 variants
InvalidId {
kind: &'static str,
value: String,
reason: &'static str,
},
UnknownRow {
event_id: SerialEventId,
row_id: RowInstanceId,
},
OrdinalOutOfRange {
event_id: SerialEventId,
row_id: RowInstanceId,
ordinal: usize,
row_len: usize,
},
RoleOriginMismatch {
event_id: SerialEventId,
reason: &'static str,
},
MissingParents {
event_id: SerialEventId,
role: &'static str,
},
UnknownParent {
event_id: SerialEventId,
parent_id: SerialEventId,
},
SelfParent(SerialEventId),
ParentCycle(SerialEventId),
MissingStructuralCoverage {
row_id: RowInstanceId,
ordinals: Vec<usize>,
},
UnknownPrecedenceNode(SerialEventId),
SelfPrecedence(SerialEventId),
PrecedenceCycle(SerialEventId),
SimultaneousPrecedenceConflict {
group_id: SimultaneousGroupId,
before: SerialEventId,
after: SerialEventId,
},
EmptyOrdinalSet(SerialEventId),
DuplicateOrdinal {
event_id: SerialEventId,
ordinal: OrdinalRef,
},
MissingStructuralLicenses(SerialEventId),
EmptyStructuralLicenseRationale(StructuralReadingId),
}Expand description
Failure while validating immutable serial-plan data.
Variants§
InvalidId
A stable identifier was empty or used an unsafe character.
Fields
UnknownRow
A planned event referenced a missing row instance.
Fields
event_id: SerialEventIdPlanned event carrying the bad reference.
row_id: RowInstanceIdReferenced row id.
OrdinalOutOfRange
A planned event referenced an ordinal outside the source row.
Fields
event_id: SerialEventIdPlanned event carrying the bad reference.
row_id: RowInstanceIdReferenced row instance.
RoleOriginMismatch
The same structural role rules were violated.
Fields
event_id: SerialEventIdAffected event.
MissingParents
A non-structural event omitted explicit parent evidence.
UnknownParent
A parent event id did not resolve.
SelfParent(SerialEventId)
A parent relation named the event itself.
ParentCycle(SerialEventId)
Parent evidence formed a cycle.
MissingStructuralCoverage
Structural coverage failed to cover every ordinal of one row.
Fields
row_id: RowInstanceIdRow instance lacking complete structural source coverage.
UnknownPrecedenceNode(SerialEventId)
The precedence graph named an unknown event.
SelfPrecedence(SerialEventId)
The precedence graph contained a self-loop.
PrecedenceCycle(SerialEventId)
The precedence graph contained a directed cycle.
SimultaneousPrecedenceConflict
Precedence claimed an ordering between events declared simultaneous.
Fields
group_id: SimultaneousGroupIdSimultaneous group shared by both events.
before: SerialEventIdEvent required to occur before the other.
after: SerialEventIdEvent required to occur after the other.
EmptyOrdinalSet(SerialEventId)
An event carried no ordinal references.
DuplicateOrdinal
The same ordinal was repeated within one event.
MissingStructuralLicenses(SerialEventId)
An event omitted the structural licenses required for reporting.
EmptyStructuralLicenseRationale(StructuralReadingId)
A structural license explanation was empty.
Trait Implementations§
Source§impl Clone for SerialPlanError
impl Clone for SerialPlanError
Source§fn clone(&self) -> SerialPlanError
fn clone(&self) -> SerialPlanError
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 SerialPlanError
impl Debug for SerialPlanError
Source§impl Display for SerialPlanError
impl Display for SerialPlanError
impl Eq for SerialPlanError
Source§impl Error for SerialPlanError
impl Error for SerialPlanError
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()