pub enum GraphError {
UnknownNode(usize),
UnknownPort {
owner: String,
direction: &'static str,
index: usize,
},
TooManyChannels {
name: String,
channels: u8,
},
SchemaMismatch {
from: String,
to: String,
output: SchemaId,
input: SchemaId,
},
Requirement {
from: String,
to: String,
key: &'static str,
requirement: String,
found: String,
},
AlreadyConnected {
to: String,
},
Unconnected {
to: String,
},
Cycle {
node: String,
},
TimeDomain {
node: String,
first: String,
second: String,
},
DuplicateExposure(String),
UnknownPortName {
owner: String,
direction: &'static str,
name: String,
},
}Expand description
Why a graph cannot be built as asked.
Variants§
UnknownNode(usize)
A port reference names a node the graph does not have.
UnknownPort
A port reference names a port its owner does not declare.
Fields
TooManyChannels
A source has more channels than a block can hold.
SchemaMismatch
The output and the input do not carry the same schema.
Fields
Requirement
The output does not satisfy a requirement of the input.
Fields
AlreadyConnected
The input is already connected; an input reads one output.
Unconnected
The input is not connected.
Cycle
The graph has a cycle through this node.
TimeDomain
The node reads inputs from different sources.
Fields
DuplicateExposure(String)
Two exposed outputs share a name.
UnknownPortName
A port named at run time does not exist.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
impl Eq for GraphError
Source§impl Error for GraphError
impl Error for GraphError
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 GraphError
impl PartialEq for GraphError
impl StructuralPartialEq for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphError
impl UnwindSafe for GraphError
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