Skip to main content

SerialPlanError

Enum SerialPlanError 

Source
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

§kind: &'static str

Identity kind being validated.

§value: String

Rejected text.

§reason: &'static str

Specific syntax failure.

§

UnknownRow

A planned event referenced a missing row instance.

Fields

§event_id: SerialEventId

Planned event carrying the bad reference.

§row_id: RowInstanceId

Referenced row id.

§

OrdinalOutOfRange

A planned event referenced an ordinal outside the source row.

Fields

§event_id: SerialEventId

Planned event carrying the bad reference.

§row_id: RowInstanceId

Referenced row instance.

§ordinal: usize

Rejected ordinal.

§row_len: usize

Row length expected by the referenced row form.

§

RoleOriginMismatch

The same structural role rules were violated.

Fields

§event_id: SerialEventId

Affected event.

§reason: &'static str

Human-readable validation reason.

§

MissingParents

A non-structural event omitted explicit parent evidence.

Fields

§event_id: SerialEventId

Affected event.

§role: &'static str

Role name.

§

UnknownParent

A parent event id did not resolve.

Fields

§event_id: SerialEventId

Child event.

§parent_id: SerialEventId

Missing parent id.

§

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: RowInstanceId

Row instance lacking complete structural source coverage.

§ordinals: Vec<usize>

Zero-based ordinals never cited by a structural event.

§

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: SimultaneousGroupId

Simultaneous group shared by both events.

§before: SerialEventId

Event required to occur before the other.

§after: SerialEventId

Event required to occur after the other.

§

EmptyOrdinalSet(SerialEventId)

An event carried no ordinal references.

§

DuplicateOrdinal

The same ordinal was repeated within one event.

Fields

§event_id: SerialEventId

Affected event.

§ordinal: OrdinalRef

Repeated ordinal reference.

§

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

Source§

fn clone(&self) -> SerialPlanError

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SerialPlanError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SerialPlanError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SerialPlanError

Source§

impl Error for SerialPlanError

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<SerialPlanError> for SerialCompletionError

Source§

fn from(source: SerialPlanError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SerialPlanError

Source§

fn eq(&self, other: &SerialPlanError) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SerialPlanError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RealizationService for T
where T: Any + Send + Sync,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Returns a downcast hook for typed access.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.