pub enum ForkError {
NotAGraphRun,
NodeNeverEntered {
node: String,
},
}Expand description
Why a fork cannot be planned at all, independent of write acknowledgement.
These are the structural refusals: the run is not a graph run, or the fork
point is not a node the origin entered. The acknowledgement refusal is not
here — it is the caller’s policy over ForkPlan::hazards.
Variants§
NotAGraphRun
The origin’s log does not open with Event::GraphRunStarted, so it is
an ordinary agent run and has no node boundaries to fork from.
NodeNeverEntered
The origin never entered the requested node (it does not exist in the graph, or the walk routed past it). A fork point must be a node the run actually reached.
Trait Implementations§
Source§impl Error for ForkError
impl Error for ForkError
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()
Auto Trait Implementations§
impl Freeze for ForkError
impl RefUnwindSafe for ForkError
impl Send for ForkError
impl Sync for ForkError
impl Unpin for ForkError
impl UnsafeUnpin for ForkError
impl UnwindSafe for ForkError
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