pub enum ContainerError {
DockerConnectionFailed(String),
ContainerNotFound {
container: String,
},
ContainerAlreadyRunning {
container: String,
},
ContainerAlreadyStopped {
container: String,
},
ImageNotFound {
image: String,
},
PortAlreadyInUse {
port: u16,
stage: String,
},
DockerApiError(String),
ConfigError(String),
}Variants§
DockerConnectionFailed(String)
ContainerNotFound
ContainerAlreadyRunning
ContainerAlreadyStopped
ImageNotFound
PortAlreadyInUse
DockerApiError(String)
ConfigError(String)
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()
Auto Trait Implementations§
impl Freeze for ContainerError
impl RefUnwindSafe for ContainerError
impl Send for ContainerError
impl Sync for ContainerError
impl Unpin 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