pub struct DockerFailure {
pub code: &'static str,
pub phase: &'static str,
pub message: String,
pub retryable: bool,
}Expand description
Stable, public classification for failures originating in the Docker
backend. The human-readable message is diagnostic only; callers should use
code and phase for policy, retry and billing decisions.
Fields§
§code: &'static str§phase: &'static str§message: String§retryable: boolImplementations§
Source§impl DockerFailure
impl DockerFailure
pub fn failure_info(&self) -> FailureInfo
Trait Implementations§
Source§impl Debug for DockerFailure
impl Debug for DockerFailure
Source§impl Display for DockerFailure
impl Display for DockerFailure
Source§impl Error for DockerFailure
impl Error for DockerFailure
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()
Auto Trait Implementations§
impl Freeze for DockerFailure
impl RefUnwindSafe for DockerFailure
impl Send for DockerFailure
impl Sync for DockerFailure
impl Unpin for DockerFailure
impl UnsafeUnpin for DockerFailure
impl UnwindSafe for DockerFailure
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