pub enum GraphContractError {
Show 14 variants
EmptyField(&'static str),
EmptyGraph,
EmptyExpansion,
RevisionExhausted,
Duplicate {
kind: &'static str,
id: String,
},
UnknownNode(String),
UnknownOutput {
node: String,
output: String,
},
Cycle,
UngatedInput(String),
InvalidProfile(&'static str),
ForeignEnv,
UnsupportedEnv,
ResultMismatch(&'static str),
UnsatisfiedGate,
}Expand description
A structural graph or exact-result binding violation.
Variants§
EmptyField(&'static str)
A required identity or name is blank.
EmptyGraph
A graph must contain at least one node.
EmptyExpansion
An expansion must append at least one node.
RevisionExhausted
The graph has no revision number left for another revision.
Duplicate
A scoped identity, dependency, or name occurs more than once.
UnknownNode(String)
An edge or input references a missing node.
UnknownOutput
A gate or binding references an undeclared output.
Cycle
A dependency cycle, including a self-dependency, exists.
UngatedInput(String)
An input lacks a validation or acceptance gate for its exact output.
InvalidProfile(&'static str)
The execution contract combines incompatible requirements.
ForeignEnv
An execution environment is not owned by the graph’s session.
UnsupportedEnv
A node references a task worktree, which graphs cannot dispatch yet.
ResultMismatch(&'static str)
A runtime result does not match the declared input and producer.
UnsatisfiedGate
A result has not reached the binding’s declared gate.
Trait Implementations§
Source§impl Clone for GraphContractError
impl Clone for GraphContractError
Source§impl Debug for GraphContractError
impl Debug for GraphContractError
Source§impl Display for GraphContractError
impl Display for GraphContractError
impl Eq for GraphContractError
Source§impl Error for GraphContractError
impl Error for GraphContractError
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()
Source§impl PartialEq for GraphContractError
impl PartialEq for GraphContractError
impl StructuralPartialEq for GraphContractError
Auto Trait Implementations§
impl Forget for GraphContractError
impl Freeze for GraphContractError
impl Move for GraphContractError
impl RefUnwindSafe for GraphContractError
impl Send for GraphContractError
impl Sync for GraphContractError
impl Unpin for GraphContractError
impl UnsafeUnpin for GraphContractError
impl UnwindSafe for GraphContractError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.