#[non_exhaustive]pub enum RunnerError {
Invalid(String),
Spawn(String),
NonZeroExit(i32),
Io(Error),
}Expand description
Errors that can occur while running a child process with an injected environment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid(String)
An env key or value supplied to the runner failed validation.
Specifically: keys must satisfy the same shape as variable names
(ASCII letter/underscore start, alphanumerics/underscore body);
values must not contain a NUL byte, which would terminate the
OS environment block prematurely. The error string carries the
key (which is not secret per evault’s design) and a category
label, but never the surrounding value text.
Spawn(String)
Spawning the child process failed.
NonZeroExit(i32)
The child exited with a non-zero status code.
Io(Error)
I/O error while interacting with the child process.
Trait Implementations§
Source§impl Debug for RunnerError
impl Debug for RunnerError
Source§impl Display for RunnerError
impl Display for RunnerError
Source§impl Error for RunnerError
impl Error for RunnerError
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 From<Error> for RunnerError
impl From<Error> for RunnerError
Source§impl From<RunnerError> for CoreError
impl From<RunnerError> for CoreError
Source§fn from(source: RunnerError) -> Self
fn from(source: RunnerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunnerError
impl !RefUnwindSafe for RunnerError
impl Send for RunnerError
impl Sync for RunnerError
impl Unpin for RunnerError
impl UnsafeUnpin for RunnerError
impl !UnwindSafe for RunnerError
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