pub enum ContainerError {
Common(CommonError),
Image(String),
Volume(String),
Runtime(String),
LockPoisoned,
}Expand description
Errors that can occur during container operations.
Variants§
Common(CommonError)
Common errors shared across ArcBox crates.
Image(String)
Image error.
Volume(String)
Volume error.
Runtime(String)
Runtime error.
LockPoisoned
Internal lock poisoned.
Implementations§
Source§impl ContainerError
impl ContainerError
Sourcepub fn invalid_state(msg: impl Into<String>) -> Self
pub fn invalid_state(msg: impl Into<String>) -> Self
Creates a new invalid state error.
Sourcepub fn already_exists(resource: impl Into<String>) -> Self
pub fn already_exists(resource: impl Into<String>) -> Self
Creates a new already exists error.
Sourcepub const fn is_not_found(&self) -> bool
pub const fn is_not_found(&self) -> bool
Returns true if this is a not found error.
Sourcepub const fn is_invalid_state(&self) -> bool
pub const fn is_invalid_state(&self) -> bool
Returns true if this is an invalid state error.
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
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<CommonError> for ContainerError
impl From<CommonError> for ContainerError
Source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> 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