pub enum DispatchError {
InvalidNode {
node_id: String,
reason: String,
},
EventLog(Error),
ClaudeProc(Error),
Io {
path: PathBuf,
source: Error,
},
Spawn {
source: Error,
},
Wait {
source: Error,
},
}Expand description
Failure categories returned from dispatch itself (distinct from
NodeOutcome::Failed, which is a recorded node failure). These
are infrastructure errors that prevent the executor from even
deciding the node’s outcome — event-log I/O, malformed pipe data
leaking past validation, stream-parser crashes, etc.
Variants§
InvalidNode
EventLog(Error)
ClaudeProc(Error)
Io
Path-bearing I/O error (capture-file writes, iteration-marker
writes, mkdir_p). Spawn and wait failures use [Spawn] /
[Wait] instead so the error message does not render as
I/O error on : ... with an empty path.
Spawn
Command::spawn failed before the child ever started. The
Command itself is lost (spawn consumed it by reference but we
have no useful identifier beyond the originating subprocess
family, which the caller can infer from context).
Wait
wait_timeout / wait on a live child reported an I/O error
(EINTR left unhandled, process reaping race). Distinct from
[Spawn] so telemetry can distinguish start-time failures from
mid-flight failures.
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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 From<DispatchError> for CliError
impl From<DispatchError> for CliError
Source§fn from(source: DispatchError) -> Self
fn from(source: DispatchError) -> Self
Source§impl From<Error> for DispatchError
impl From<Error> for DispatchError
Auto Trait Implementations§
impl Freeze for DispatchError
impl !RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl !UnwindSafe for DispatchError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more