pub enum HookExecutorError {
EmptyCommand {
phase_event: String,
hook_name: String,
},
CommandResolution {
phase_event: String,
hook_name: String,
command: String,
reason: String,
},
Spawn {
phase_event: String,
hook_name: String,
command: String,
cwd: String,
source: Error,
},
StdinSerialize {
phase_event: String,
hook_name: String,
command: String,
source: Error,
},
StdinWrite {
phase_event: String,
hook_name: String,
command: String,
source: Error,
},
TimeoutTerminate {
phase_event: String,
hook_name: String,
command: String,
timeout_seconds: u64,
source: Error,
},
OutputRead {
phase_event: String,
hook_name: String,
command: String,
stream: &'static str,
source: Error,
},
OutputCollectorJoin {
phase_event: String,
hook_name: String,
command: String,
stream: &'static str,
},
Wait {
phase_event: String,
hook_name: String,
command: String,
source: Error,
},
}Expand description
Hook executor errors.
Variants§
EmptyCommand
Command argv is missing an executable entry.
CommandResolution
Command argv executable could not be resolved to a launchable binary path.
Spawn
Process spawn failed after command/cwd/env resolution.
StdinSerialize
Serializing the JSON stdin payload failed.
StdinWrite
Writing stdin payload bytes to the child process failed.
TimeoutTerminate
Timeout enforcement attempted to terminate the process but kill failed.
OutputRead
Reading captured stdout/stderr bytes failed.
OutputCollectorJoin
Output collector thread panicked while reading stdout/stderr.
Wait
Waiting for spawned process completion failed.
Trait Implementations§
Source§impl Debug for HookExecutorError
impl Debug for HookExecutorError
Source§impl Display for HookExecutorError
impl Display for HookExecutorError
Source§impl Error for HookExecutorError
impl Error for HookExecutorError
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 HookExecutorError
impl !RefUnwindSafe for HookExecutorError
impl Send for HookExecutorError
impl Sync for HookExecutorError
impl Unpin for HookExecutorError
impl UnsafeUnpin for HookExecutorError
impl !UnwindSafe for HookExecutorError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.