pub enum CodebaseDocError {
Show 31 variants
DuplicateMachine {
machine: &'static str,
},
EmptyStateList {
machine: &'static str,
},
DuplicateStateName {
machine: &'static str,
state: &'static str,
},
DuplicateTransitionSite {
machine: &'static str,
state: &'static str,
transition: &'static str,
},
MissingSourceState {
machine: &'static str,
transition: &'static str,
},
MissingTargetState {
machine: &'static str,
transition: &'static str,
},
EmptyTargetSet {
machine: &'static str,
transition: &'static str,
},
DuplicateTargetState {
machine: &'static str,
transition: &'static str,
state: &'static str,
},
MissingValidatorMachine {
machine: &'static str,
source_module_path: &'static str,
source_type_display: &'static str,
},
MissingValidatorTargetState {
machine: &'static str,
source_module_path: &'static str,
source_type_display: &'static str,
state: &'static str,
},
EmptyValidatorTargetSet {
machine: &'static str,
source_module_path: &'static str,
source_type_display: &'static str,
},
DuplicateValidatorTargetState {
machine: &'static str,
source_module_path: &'static str,
source_type_display: &'static str,
state: &'static str,
},
DuplicateValidatorEntry {
machine: &'static str,
source_module_path: &'static str,
source_type_display: &'static str,
},
DuplicateReferenceTypeDeclaration {
rust_type_path: &'static str,
resolved_type_name: &'static str,
},
MissingReferenceTypeTargetMachine {
rust_type_path: &'static str,
target_machine_path: String,
target_state: &'static str,
},
MissingReferenceTypeTargetState {
rust_type_path: &'static str,
target_machine_path: String,
target_state: &'static str,
},
AmbiguousReferenceTypeTarget {
rust_type_path: &'static str,
target_machine_path: String,
target_state: &'static str,
},
MissingRelationMachine {
machine_path: String,
relation: String,
},
AmbiguousRelationMachine {
machine_path: String,
relation: String,
},
MissingRelationSourceState {
machine: &'static str,
state: &'static str,
relation: String,
},
MissingRelationTransition {
machine: &'static str,
state: &'static str,
transition: &'static str,
},
AmbiguousRelationTarget {
relation: String,
target_machine_path: String,
target_state: &'static str,
},
DuplicateViaRoute {
via_module_path: &'static str,
route_name: &'static str,
},
ConflictingViaRouteTarget {
via_module_path: &'static str,
route_name: &'static str,
expected_target_state: &'static str,
conflicting_target_state: &'static str,
},
MissingRelationViaRoute {
relation: String,
via_module_path: &'static str,
route_name: &'static str,
},
MissingRelationViaSourceState {
machine: &'static str,
state: &'static str,
relation: String,
},
MissingRelationViaTransition {
machine: &'static str,
state: &'static str,
transition: &'static str,
relation: String,
},
MissingRelationViaTargetState {
machine: &'static str,
state: &'static str,
relation: String,
},
MismatchedRelationViaTarget {
relation: String,
via_module_path: &'static str,
route_name: &'static str,
declared_target_state: &'static str,
producer_target_state: &'static str,
},
MissingStaticLinkSourceState {
machine: &'static str,
state: &'static str,
},
AmbiguousStaticLink {
machine: &'static str,
state: &'static str,
field_name: Option<&'static str>,
target_machine_path: String,
target_state: &'static str,
},
}Expand description
Error returned when a linked machine inventory cannot be exported into a stable codebase document.
Variants§
DuplicateMachine
One linked machine family appears more than once in the inventory.
EmptyStateList
One linked machine exports no states.
DuplicateStateName
One state name appears more than once in one machine.
DuplicateTransitionSite
One source state declares the same transition method name more than once.
MissingSourceState
One transition source state is not present in the machine state list.
MissingTargetState
One transition target state is not present in the machine state list.
EmptyTargetSet
One transition site declares no legal target states.
DuplicateTargetState
One transition lists the same target state more than once.
MissingValidatorMachine
One validator-entry surface points at a machine missing from the linked machine inventory.
MissingValidatorTargetState
One validator-entry surface points at a target state missing from the linked machine state list.
Fields
EmptyValidatorTargetSet
One validator-entry surface declares no target states.
DuplicateValidatorTargetState
One validator-entry surface lists the same target state more than once.
Fields
DuplicateValidatorEntry
One validator-entry surface appears more than once for the same machine and impl site.
DuplicateReferenceTypeDeclaration
One declared #[machine_ref(...)] type appears more than once for the
same compiler-resolved nominal type identity.
MissingReferenceTypeTargetMachine
One declared #[machine_ref(...)] target machine is missing from the
linked machine inventory.
MissingReferenceTypeTargetState
One declared #[machine_ref(...)] target state is missing from the
linked machine inventory.
AmbiguousReferenceTypeTarget
One declared #[machine_ref(...)] target resolves to multiple linked
machines.
MissingRelationMachine
One linked exact relation cannot resolve its source machine.
AmbiguousRelationMachine
One linked exact relation matches multiple source machines.
MissingRelationSourceState
One linked exact relation points at a source state missing from the resolved source machine.
MissingRelationTransition
One linked exact relation points at a transition site missing from the resolved source machine.
AmbiguousRelationTarget
One linked exact relation matches multiple target machines.
DuplicateViaRoute
One attested producer route appears more than once in the linked inventory.
ConflictingViaRouteTarget
One linked attested producer route reuses the same route identity with a different target state.
Fields
MissingRelationViaRoute
One #[via(...)] exact relation points at a producer route missing from
the linked inventory.
MissingRelationViaSourceState
One #[via(...)] relation points at a producer source state missing
from the resolved machine graph.
MissingRelationViaTransition
One #[via(...)] relation points at a producer transition missing from
the resolved machine graph.
MissingRelationViaTargetState
One attested producer route points at a target state missing from the resolved machine graph.
MismatchedRelationViaTarget
One #[via(...)] relation declared an inner target state that does not
match the attested producer route it references.
Fields
MissingStaticLinkSourceState
One static payload link points at a source state missing from the machine state list.
AmbiguousStaticLink
One static payload link matches multiple linked machine families.
Trait Implementations§
Source§impl Clone for CodebaseDocError
impl Clone for CodebaseDocError
Source§fn clone(&self) -> CodebaseDocError
fn clone(&self) -> CodebaseDocError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CodebaseDocError
impl Debug for CodebaseDocError
Source§impl Display for CodebaseDocError
impl Display for CodebaseDocError
Source§impl Error for CodebaseDocError
impl Error for CodebaseDocError
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()