pub enum ExecutionError {
NotFound(String),
Environment(Error),
Unknown(Error),
NonZero {
command: String,
output: Output,
},
}
Expand description
Common errors from command execution.
Variants§
NotFound(String)
Requested executable cannot be found
Environment(Error)
Error inside an Environment
Unknown(Error)
Error from Command
NonZero
Error from the called command
§Note
When calling from the host into a toolbx container, stdout and stderr are both merged
into stdout. This is currently a shortcoming of the involved call to podman exec -t ...
. Refer to the manpage of podman-exec(1)
, in particular the NOTE attached to
--tty
.
This means that when checking for messages in output.stderr
, you should always check
for the existence of your message in both stderr and stdout.
Trait Implementations§
Source§impl Debug for ExecutionError
impl Debug for ExecutionError
Source§impl Display for ExecutionError
impl Display for ExecutionError
Source§impl Error for ExecutionError
impl Error for ExecutionError
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 ExecutionError
impl From<Error> for ExecutionError
Source§impl From<Error> for ExecutionError
impl From<Error> for ExecutionError
Source§impl From<ExecutionError> for CacheError
impl From<ExecutionError> for CacheError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for CacheError
impl From<ExecutionError> for CacheError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for Error
impl From<ExecutionError> for Error
Source§fn from(value: ExecutionError) -> Self
fn from(value: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for Error
impl From<ExecutionError> for Error
Source§fn from(value: ExecutionError) -> Self
fn from(value: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for ProviderError
impl From<ExecutionError> for ProviderError
Source§fn from(value: ExecutionError) -> Self
fn from(value: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for LocalFlatpaksError
impl From<ExecutionError> for LocalFlatpaksError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionError> for RemoteError
impl From<ExecutionError> for RemoteError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionError
impl !RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl !UnwindSafe for ExecutionError
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> 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>
Converts
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>
Converts
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