#[non_exhaustive]pub enum RunnerError {
Show 16 variants
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>,
},
CreateNetworkError {
runner: Runner,
name: String,
source: Box<ContainerError>,
},
CreateVolumeError {
runner: Runner,
name: String,
source: Box<ContainerError>,
},
InspectNetworkError {
runner: Runner,
container: Box<ContainerId>,
source: Box<ContainerError>,
},
ListNetworkError {
runner: Runner,
source: Box<ContainerError>,
},
FindNetworkIpError {
runner: Runner,
network: Box<Network>,
container: Box<ContainerId>,
source: Box<ContainerError>,
},
ExpectedNetworkNameError {
runner: Runner,
network: Box<Network>,
container: ContainerId,
},
NoNetworkIp {
runner: Runner,
network: Box<Network>,
container: ContainerId,
},
StopError {
runner: Runner,
id: ContainerId,
source: Box<ContainerError>,
},
HostIpError {
runner: Runner,
source: Box<ContainerError>,
},
ComposeError {
runner: Runner,
path: PathBuf,
source: Box<ComposeError>,
},
DifferentRunner {
runner: Runner,
container_runner: Box<Runner>,
},
}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
Fail to start a container
Fields
§
container: Box<RunnableContainer>The runnable container
§
source: Box<ContainerError>The source error
ExecError
Fail to exec a container
CreateNetworkError
Fail to create a network
Fields
§
source: Box<ContainerError>The source error
CreateVolumeError
Fail to create a volume
Fields
§
source: Box<ContainerError>The source error
InspectNetworkError
Fail to retrieve container IP in a specific network
ListNetworkError
Fail to retrieve container IP in a specific network
FindNetworkIpError
Fail to retrieve network IP
ExpectedNetworkNameError
Expected a network name
Fields
§
container: ContainerIdThe container,
NoNetworkIp
No IP found
Fields
§
container: ContainerIdThe container,
StopError
Fail to stop a container
HostIpError
Fail to retrieve host ip address
ComposeError
Fail to run compose
Fields
§
source: Box<ComposeError>The source error
DifferentRunner
Different runner
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<RunnerError> for CopyError
impl From<RunnerError> for CopyError
Source§fn from(source: RunnerError) -> Self
fn from(source: RunnerError) -> Self
Converts to this type from the input type.
Source§impl From<RunnerError> for PortError
impl From<RunnerError> for PortError
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 !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