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.

Fields

§path: PathBuf
§err: Error
§

WaitError

Failed to wait for the container with the given name.

Fields

§name: String
§err: Error
§

LogsError

Failed to read the logs of a container.

Fields

§name: String
§err: Error
§

InspectContainerError

Failed to inspect the given container.

Fields

§name: String
§err: Error
§

ContainerNoNetwork

The given container was not attached to any networks.

Fields

§name: String
§

CreateContainerError

Could not create and/or start the given container.

Fields

§name: String
§image: Box<Image>
§err: Error
§

StartError

Fialed to start the given container.

Fields

§name: String
§image: Box<Image>
§err: Error
§

ContainerNoState

An executing container had no execution state (it wasn’t started?)

Fields

§name: String
§

ContainerNoExitCode

An executing container had no return code.

Fields

§name: String
§

ContainerRemoveError

Failed to remove the given container.

Fields

§name: String
§err: Error
§

ImageFileOpenError

Failed to open the given image file.

Fields

§path: PathBuf
§err: Error
§

ImageImportError

Failed to import the given image file.

Fields

§path: PathBuf
§err: Error
§

ImageFileCreateError

Failed to create the given image file.

Fields

§path: PathBuf
§err: Error
§

ImageExportError

Failed to download a piece of the image from the Docker client.

Fields

§name: String
§err: Error
§

ImageFileWriteError

Failed to write a chunk of the exported image.

Fields

§path: PathBuf
§err: Error
§

ImageFileShutdownError

Failed to shutdown the given file.

Fields

§path: PathBuf
§err: Error
§

ImagePullError

Failed to pull the given image file.

Fields

§source: String
§err: Error
§

ImageTagError

Failed to appropriately tag the pulled image.

Fields

§image: Box<Image>
§source: String
§err: Error
§

ImageInspectError

Failed to inspect a certain image.

Fields

§image: Box<Image>
§err: Error
§

ImageRemoveError

Failed to remove a certain image.

Fields

§image: Box<Image>
§err: Error
§

ImageTarOpenError

Could not open the given image.tar.

Fields

§path: PathBuf
§err: Error
§

ImageTarReadError

Could not read from the given image.tar.

Fields

§path: PathBuf
§err: Error
§

ImageTarEntriesError

Could not get the list of entries from the given image.tar.

Fields

§path: PathBuf
§err: Error
§

ImageTarEntryError

COuld not read a single entry from the given image.tar.

Fields

§path: PathBuf
§err: Error
§

ImageTarIllegalPath

Could not get path from entry

Fields

§path: PathBuf
§err: Error
§

ImageTarManifestReadError

Could not read the manifest.json file

Fields

§path: PathBuf
§entry: PathBuf
§err: Error
§

ImageTarManifestParseError

Could not parse the manifest.json file

Fields

§path: PathBuf
§entry: PathBuf
§err: Error
§

ImageTarIllegalManifestNum

Incorrect number of items found in the toplevel list of the manifest.json file

Fields

§path: PathBuf
§entry: PathBuf
§got: usize
§

ImageTarIllegalDigest

Could not find the expected part of the config digest

Fields

§path: PathBuf
§entry: PathBuf
§digest: String
§

ImageTarNoManifest

Could not find the manifest.json file in the given image.tar.

Fields

§path: PathBuf

Trait Implementations§

source§

impl Debug for DockerError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for DockerError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> FResult

Formats the value using the given formatter. Read more
source§

impl Error for DockerError

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ErrorTrace for T
where T: Error,

source§

fn trace(&self) -> ErrorTraceFormatter<'_>

Returns a formatter that writes the error to the given formatter, with any sources it has. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T