#[non_exhaustive]pub enum SubstrateError {
NotImplemented(&'static str),
Io(Error),
Docker(Error),
Resolve(String),
InvalidSpec(String),
Timeout(String),
}Expand description
#[non_exhaustive]: new variants are additive from here on. (Adding the
attribute, and the InvalidSpec variant below, is the one breaking change
of the 0.1.0 release for anyone matching exhaustively; pre-1.0.)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NotImplemented(&'static str)
Io(Error)
Docker(Error)
A dockerd Engine API call (via bollard) failed. Purely a
mechanics-layer failure — this crate never inspects the underlying
bollard::errors::Error to make an authorization decision, only to
distinguish transient/not-found conditions (see lifecycle’s
is_not_found helper) from real failures.
Resolve(String)
An OS-level fact (cgroup path, mount-namespace handle, uid) could
not be resolved from a running container/process — e.g. malformed
/proc content, an unsupported cgroup hierarchy, or a container
that isn’t actually running. Distinct from Io, which covers the
read itself failing (including permission-denied reading another
user’s /proc/<pid>/ns/*, a real and expected boundary — see
mount::resolve_mount_namespace’s doc).
InvalidSpec(String)
A caller-supplied spec (ContainerSpec, VolumeMount, PortMapping)
was rejected before any dockerd call was made — a malformed volume
name, a relative mount target, a duplicate port publish, etc.
Timeout(String)
A poll (e.g. waiting for a container to reach and stay at Running) exceeded its deadline.
Trait Implementations§
Source§impl Debug for SubstrateError
impl Debug for SubstrateError
Source§impl Display for SubstrateError
impl Display for SubstrateError
Source§impl Error for SubstrateError
impl Error for SubstrateError
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()