pub enum RuntimeError {
Show 14 variants
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),
NetworkCreate {
name: String,
source: Error,
},
NetworkRemove {
name: String,
source: Error,
},
Build(Error),
BuildFailed(String),
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.
NetworkCreate
Creating the per-project Docker bridge network failed.
Fields
NetworkRemove
Removing the per-project Docker bridge network failed.
Fields
Build(Error)
Building an image from a Dockerfile failed.
BuildFailed(String)
The BuildKit builder reported a failure in its progress stream.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request