#[non_exhaustive]pub enum ContainerError {
Docker(Error),
NotFound(String),
AlreadyExists(String),
ImageNotAllowed {
image: String,
allowed: Vec<String>,
},
InvalidState {
id: String,
expected: String,
actual: String,
},
Agent(String),
Io(Error),
Serialization(Error),
}Expand description
Errors that can occur during container operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Docker(Error)
Docker daemon communication failure.
NotFound(String)
The requested container was not found.
AlreadyExists(String)
A container with this ID already exists.
ImageNotAllowed
The requested image is not in the allowlist.
InvalidState
The container is in an invalid state for the requested operation.
Agent(String)
Agent orchestration error.
Io(Error)
I/O error during workspace or volume operations.
Serialization(Error)
Serialization/deserialization 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<Error> for ContainerError
impl From<Error> for ContainerError
Source§impl From<Error> for ContainerError
impl From<Error> for ContainerError
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