Enum FlowError
pub enum FlowError {
Invalid(String),
UnreachableStep(String),
UnguardedCommitTool(String),
UnknownTool(String),
UnsatisfiableGuard {
tool: String,
step: String,
},
OrderingCycle(Vec<String>),
}Expand description
A single problem found while compiling a Flow.
Variants§
Invalid(String)
A referential-integrity or acyclicity error from Flow::validate.
UnreachableStep(String)
A step that no path from a root can ever reach.
UnguardedCommitTool(String)
A commit (confirm) tool whose gate is always true — effectively unguarded, defeating confirm-before-commit.
UnknownTool(String)
A tool referenced by the flow (step allow/deny, once,
never…until, confirm) that is not in the registry given to
Flow::compile_with_tools.
UnsatisfiableGuard
A never(tool).until(guard) whose guard references a step id that
doesn’t exist — the guard can never latch, so the tool would be
forbidden forever.
Fields
OrderingCycle(Vec<String>)
A cycle over the combined after + before(a, b) ordering edges —
every step on the cycle waits on another, so none can ever become
eligible. Contains the step ids on the cycle.
Trait Implementations§
impl Eq for FlowError
impl StructuralPartialEq for FlowError
Auto Trait Implementations§
impl Freeze for FlowError
impl RefUnwindSafe for FlowError
impl Send for FlowError
impl Sync for FlowError
impl Unpin for FlowError
impl UnwindSafe for FlowError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more