pub enum GraphError {
PadOutOfRange {
index: usize,
pad_count: usize,
},
PadAlreadyLinked(String),
ParentNotAttached(ElementId),
NodeAlreadyAttached(ElementId),
BranchNotAttached(BranchId),
EmptyBranch,
NotSingleOutput {
name: Arc<str>,
count: usize,
},
}Expand description
A rejected topology change.
Every variant here is a refusal, not a partial result: attachment validates before it mutates, so a graph that returns one of these is left exactly as it was.
Variants§
PadOutOfRange
The requested source pad index does not exist.
Fields
PadAlreadyLinked(String)
Attachment targeted a source pad that already owns a downstream sink.
ParentNotAttached(ElementId)
A dynamic attachment named an element that is no longer in this graph.
NodeAlreadyAttached(ElementId)
An attachment plan attempted to publish an already-attached node.
BranchNotAttached(BranchId)
A detach operation named a branch that is no longer attached.
EmptyBranch
An attachment plan contained no terminal or processing element.
NotSingleOutput
crate::pipeline::ChainBuilder::pipe received a filter whose output
shape cannot be represented as one linear chain stage.
Trait Implementations§
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 From<GraphError> for Error
impl From<GraphError> for Error
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
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