pub enum ContainerError {
PullFailed {
image: String,
reason: String,
},
CreateFailed(String),
StartFailed {
id: String,
reason: String,
},
Exited {
id: String,
code: i32,
},
NotFound {
id: String,
},
HealthCheckFailed {
id: String,
reason: String,
},
InitActionFailed {
id: String,
action: String,
reason: String,
},
}Expand description
Container runtime errors
Variants§
PullFailed
Failed to pull image
CreateFailed(String)
Failed to create container
StartFailed
Failed to start container
Exited
Container exited unexpectedly
NotFound
Container not found
HealthCheckFailed
Health check failed
InitActionFailed
Init action failed
Trait Implementations§
Source§impl Debug for ContainerError
impl Debug for ContainerError
Source§impl Display for ContainerError
impl Display for ContainerError
Source§impl Error for ContainerError
impl Error for ContainerError
1.30.0 · 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<ContainerError> for ZLayerError
impl From<ContainerError> for ZLayerError
Source§fn from(source: ContainerError) -> Self
fn from(source: ContainerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContainerError
impl RefUnwindSafe for ContainerError
impl Send for ContainerError
impl Sync for ContainerError
impl Unpin for ContainerError
impl UnsafeUnpin for ContainerError
impl UnwindSafe for ContainerError
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP