pub enum ComponentGraphError {
Empty,
EmptyId,
DuplicateId(String),
DependencyArity {
unit: String,
dependencies: usize,
domains: usize,
},
UnknownDependency {
unit: String,
dependency: String,
},
DuplicateDependency {
unit: String,
dependency: String,
},
DomainMismatch {
unit: String,
dependency: String,
expected: ComponentDomain,
actual: ComponentDomain,
},
Cycle,
NoOutputs,
DuplicateOutput,
UnknownOutput(String),
}Expand description
Invalid component graph declaration.
Variants§
Empty
No components were declared.
EmptyId
One component identity was empty.
DuplicateId(String)
A component identity occurred more than once.
DependencyArity
Dependency and expected-domain counts differ.
Fields
UnknownDependency
A dependency identity was not declared.
DuplicateDependency
The same dependency was listed twice.
DomainMismatch
Producer and consumer domains disagree.
Cycle
Dependency graph contains a cycle.
NoOutputs
No observable output was declared.
DuplicateOutput
One output identity was repeated.
UnknownOutput(String)
An output identity was not declared.
Trait Implementations§
Source§impl Clone for ComponentGraphError
impl Clone for ComponentGraphError
Source§fn clone(&self) -> ComponentGraphError
fn clone(&self) -> ComponentGraphError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentGraphError
impl Debug for ComponentGraphError
Source§impl Display for ComponentGraphError
impl Display for ComponentGraphError
impl Eq for ComponentGraphError
Source§impl Error for ComponentGraphError
impl Error for ComponentGraphError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ComponentGraphError
impl PartialEq for ComponentGraphError
impl StructuralPartialEq for ComponentGraphError
Auto Trait Implementations§
impl Freeze for ComponentGraphError
impl RefUnwindSafe for ComponentGraphError
impl Send for ComponentGraphError
impl Sync for ComponentGraphError
impl Unpin for ComponentGraphError
impl UnsafeUnpin for ComponentGraphError
impl UnwindSafe for ComponentGraphError
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
Mutably borrows from an owned value. Read more