pub enum ContainersError {
IOError(Error),
CommandError(Output),
JsonError(Error),
ContainerStatusError {
status: ContainerStatus,
},
ContainerNotExists {
container_name: String,
},
ContainerWaitFailed {
container_name: String,
wait_strategy: WaitStrategy,
},
InvalidImageName {
name: String,
},
}Variants§
IOError(Error)
CommandError(Output)
JsonError(Error)
ContainerStatusError
Fields
§
status: ContainerStatusContainerNotExists
ContainerWaitFailed
InvalidImageName
Trait Implementations§
Source§impl Debug for ContainersError
impl Debug for ContainersError
Source§impl Display for ContainersError
impl Display for ContainersError
Source§impl Error for ContainersError
impl Error for ContainersError
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<Error> for ContainersError
impl From<Error> for ContainersError
Auto Trait Implementations§
impl Freeze for ContainersError
impl !RefUnwindSafe for ContainersError
impl Send for ContainersError
impl Sync for ContainersError
impl Unpin for ContainersError
impl !UnwindSafe for ContainersError
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