pub enum GraphContractError {
EmptyField(&'static str),
EmptyGraph,
Duplicate {
kind: &'static str,
id: String,
},
UnknownNode(String),
UnknownOutput {
node: String,
output: String,
},
Cycle,
UngatedInput(String),
InvalidProfile(&'static str),
ForeignEnv,
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.
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.
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)>
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 GraphContractError
impl PartialEq for GraphContractError
impl StructuralPartialEq for GraphContractError
Auto Trait Implementations§
impl Forget for GraphContractError
impl Freeze 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
Mutably borrows from an owned value. Read more
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§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
Compare self to
key and return true if they are equal.