Enum rustainers::runner::RunnerError
source · #[non_exhaustive]pub enum RunnerError {
CommandNotAvailable(String),
UnsupportedVersion {
command: String,
current: Version,
minimal: Version,
},
NoRunnerAvailable,
StartError {
runner: Runner,
container: Box<RunnableContainer>,
source: Box<ContainerError>,
},
ExecError {
runner: Runner,
id: ContainerId,
source: Box<ContainerError>,
},
StopError {
runner: Runner,
id: ContainerId,
source: Box<ContainerError>,
},
ComposeError {
runner: Runner,
path: PathBuf,
source: Box<ComposeError>,
},
}Expand description
Runner errors
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.
CommandNotAvailable(String)
Command not available
UnsupportedVersion
Unsupported version
NoRunnerAvailable
Unable to find an available runner
StartError
Fields
§
container: Box<RunnableContainer>The runnable container
§
source: Box<ContainerError>The source error
Fail to start a container
ExecError
Fail to exec a container
StopError
Fail to stop a container
ComposeError
Fields
§
source: Box<ComposeError>The source error
Fail to run compose
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)>
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 !RefUnwindSafe for RunnerError
impl Send for RunnerError
impl Sync for RunnerError
impl Unpin 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