pub enum RuntimeError {
Connect(Error),
ImagePull {
image: String,
source: Error,
},
Start(Error),
Stop {
id: String,
source: Error,
},
Remove {
name: String,
source: Error,
},
Inspect {
id: String,
source: Error,
},
NotFound(String),
Timeout {
operation: &'static str,
after: Duration,
},
LogStream(Error),
Build(Error),
InvalidSpec(String),
}Expand description
Errors raised by a crate::ContainerRuntime implementation.
Variants§
Connect(Error)
The runtime could not establish a connection to the underlying container daemon (Docker socket, Podman API, …).
ImagePull
Pulling an image from the registry failed.
Fields
Start(Error)
The runtime refused to start the container.
Stop
The runtime refused to stop a container.
Fields
Remove
The runtime refused to remove a container.
Fields
Inspect
The runtime could not inspect a container.
Fields
NotFound(String)
The container does not exist on the daemon.
Timeout
A blocking operation exceeded its allotted time budget.
Fields
LogStream(Error)
Streaming logs from a container failed mid-flight.
Build(Error)
Building an image from a Dockerfile failed.
InvalidSpec(String)
The provided crate::ContainerSpec is structurally invalid.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<RuntimeError> for LifecycleHandleError
impl From<RuntimeError> for LifecycleHandleError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl !UnwindSafe for RuntimeError
impl Freeze for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
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