pub enum DockerError {
ImagePullFailed {
image: String,
reason: String,
},
CommandFailed {
message: String,
stderr: String,
},
Timeout {
seconds: f64,
operation: String,
},
NotStarted,
SessionExists(String),
SessionNotFound(String),
NonZeroExit {
exit_code: i32,
command: String,
output: String,
},
ConnectionFailed {
host: String,
port: u16,
reason: String,
},
Other(String),
}Expand description
Errors that can occur during Docker operations.
Variants§
ImagePullFailed
CommandFailed
Timeout
NotStarted
SessionExists(String)
SessionNotFound(String)
NonZeroExit
ConnectionFailed
Other(String)
Trait Implementations§
Source§impl Debug for DockerError
impl Debug for DockerError
Source§impl Display for DockerError
impl Display for DockerError
Source§impl Error for DockerError
impl Error for DockerError
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 DockerError
impl RefUnwindSafe for DockerError
impl Send for DockerError
impl Sync for DockerError
impl Unpin for DockerError
impl UnsafeUnpin for DockerError
impl UnwindSafe for DockerError
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