Enum brane_tsk::errors::DockerError
source · pub enum DockerError {
Show 30 variants
ConnectionError {
path: PathBuf,
version: ClientVersion,
err: Error,
},
WaitError {
name: String,
err: Error,
},
LogsError {
name: String,
err: Error,
},
InspectContainerError {
name: String,
err: Error,
},
ContainerNoNetwork {
name: String,
},
CreateContainerError {
name: String,
image: Box<Image>,
err: Error,
},
StartError {
name: String,
image: Box<Image>,
err: Error,
},
ContainerNoState {
name: String,
},
ContainerNoExitCode {
name: String,
},
ContainerRemoveError {
name: String,
err: Error,
},
ImageFileOpenError {
path: PathBuf,
err: Error,
},
ImageImportError {
path: PathBuf,
err: Error,
},
ImageFileCreateError {
path: PathBuf,
err: Error,
},
ImageExportError {
name: String,
err: Error,
},
ImageFileWriteError {
path: PathBuf,
err: Error,
},
ImageFileShutdownError {
path: PathBuf,
err: Error,
},
ImagePullError {
source: String,
err: Error,
},
ImageTagError {
image: Box<Image>,
source: String,
err: Error,
},
ImageInspectError {
image: Box<Image>,
err: Error,
},
ImageRemoveError {
image: Box<Image>,
id: String,
err: Error,
},
ImageTarOpenError {
path: PathBuf,
err: Error,
},
ImageTarReadError {
path: PathBuf,
err: Error,
},
ImageTarEntriesError {
path: PathBuf,
err: Error,
},
ImageTarEntryError {
path: PathBuf,
err: Error,
},
ImageTarIllegalPath {
path: PathBuf,
err: Error,
},
ImageTarManifestReadError {
path: PathBuf,
entry: PathBuf,
err: Error,
},
ImageTarManifestParseError {
path: PathBuf,
entry: PathBuf,
err: Error,
},
ImageTarIllegalManifestNum {
path: PathBuf,
entry: PathBuf,
got: usize,
},
ImageTarIllegalDigest {
path: PathBuf,
entry: PathBuf,
digest: String,
},
ImageTarNoManifest {
path: PathBuf,
},
}
Expand description
Collects errors that relate to Docker.
Note: we’ve boxed Image
to reduce the size of the error (and avoid running into clippy::result_large_err
).
Variants§
ConnectionError
We failed to connect to the local Docker daemon.
WaitError
Failed to wait for the container with the given name.
LogsError
Failed to read the logs of a container.
InspectContainerError
Failed to inspect the given container.
ContainerNoNetwork
The given container was not attached to any networks.
CreateContainerError
Could not create and/or start the given container.
StartError
Fialed to start the given container.
ContainerNoState
An executing container had no execution state (it wasn’t started?)
ContainerNoExitCode
An executing container had no return code.
ContainerRemoveError
Failed to remove the given container.
ImageFileOpenError
Failed to open the given image file.
ImageImportError
Failed to import the given image file.
ImageFileCreateError
Failed to create the given image file.
ImageExportError
Failed to download a piece of the image from the Docker client.
ImageFileWriteError
Failed to write a chunk of the exported image.
ImageFileShutdownError
Failed to shutdown the given file.
ImagePullError
Failed to pull the given image file.
ImageTagError
Failed to appropriately tag the pulled image.
ImageInspectError
Failed to inspect a certain image.
ImageRemoveError
Failed to remove a certain image.
ImageTarOpenError
Could not open the given image.tar.
ImageTarReadError
Could not read from the given image.tar.
ImageTarEntriesError
Could not get the list of entries from the given image.tar.
ImageTarEntryError
COuld not read a single entry from the given image.tar.
ImageTarIllegalPath
Could not get path from entry
ImageTarManifestReadError
Could not read the manifest.json file
ImageTarManifestParseError
Could not parse the manifest.json file
ImageTarIllegalManifestNum
Incorrect number of items found in the toplevel list of the manifest.json file
ImageTarIllegalDigest
Could not find the expected part of the config digest
ImageTarNoManifest
Could not find the manifest.json file in the given image.tar.
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
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for DockerError
impl !RefUnwindSafe for DockerError
impl Send for DockerError
impl Sync for DockerError
impl Unpin for DockerError
impl !UnwindSafe for DockerError
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> ErrorTrace for Twhere
T: Error,
impl<T> ErrorTrace for Twhere
T: Error,
source§fn trace(&self) -> ErrorTraceFormatter<'_>
fn trace(&self) -> ErrorTraceFormatter<'_>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request