Enum bollard::errors::Error[][src]

pub enum Error {
Show 19 variants NoCertPathError, CertPathError { path: PathBuf, }, CertMultipleKeys { count: usize, path: PathBuf, }, CertParseError { path: PathBuf, }, DockerResponseNotFoundError { message: String, }, DockerResponseServerError { status_code: u16, message: String, }, DockerResponseBadParameterError { message: String, }, DockerResponseConflictError { message: String, }, DockerResponseNotModifiedError { message: String, }, JsonDataError { message: String, contents: String, column: usize, }, APIVersionParseError { api_version: String, }, JsonSerdeError { err: Error, }, StrParseError { err: Utf8Error, }, IOError { err: Error, }, StrFmtError { err: Error, }, HttpClientError { err: Error, }, HyperResponseError { err: Error, }, RequestTimeoutError, URLEncodedError { err: Error, },
}
Expand description

The type of error embedded in an Error.

Variants

NoCertPathError

Error emitted during client instantiation when the DOCKER_CERT_PATH environment variable is invalid.

CertPathError

Fields

path: PathBuf

Path for the failing certificate file

Generic error when reading a certificate from the filesystem

CertMultipleKeys

Fields

count: usize

Number of keys found in the certificate file

path: PathBuf

Path for the failing certificate file

Error emitted when multiple keys are found in a certificate file

CertParseError

Fields

path: PathBuf

Path for the failing certificate file

Parse error for RSA encrypted keys

DockerResponseNotFoundError

Fields

message: String

Message returned by the docker server.

Error emitted by the docker server, when it responds with a 404.

DockerResponseServerError

Fields

status_code: u16

Status code returned by the docker server.

message: String

Message returned by the docker server.

Generic error emitted by the docker server.

DockerResponseBadParameterError

Fields

message: String

Message returned by the docker server.

Error emitted by the docker server, when it responds with a 400.

DockerResponseConflictError

Fields

message: String

Message returned by the docker server.

Error emitted by the docker server, when it responds with a 409.

DockerResponseNotModifiedError

Fields

message: String

Message returned by the docker server.

Error emitted by the docker server, when it responds with a 304.

JsonDataError

Fields

message: String

Short section of the json close to the error.

contents: String

Entire JSON payload.

column: usize

Character sequence at error location.

Error facilitating debugging failed JSON parsing.

APIVersionParseError

Fields

api_version: String

The api version returned by the server.

Error emitted when the server version cannot be parsed when negotiating a version

JsonSerdeError

Fields

err: Error

The original error emitted by serde.

Error emitted when JSON fails to serialize.

StrParseError

Fields

err: Utf8Error

The original error emitted.

Error emitted when log output generates an I/O error.

IOError

Fields

err: Error

The original error emitted.

Error emitted from an I/O error.

StrFmtError

Fields

err: Error

The original error emitted.

Error emitted from a formatting error.

HttpClientError

Fields

err: Error

The original error emitted.

Error emitted from an HTTP error.

HyperResponseError

Fields

err: Error

The original error emitted.

Error emitted from an HTTP error.

RequestTimeoutError

Error emitted when a request times out.

URLEncodedError

Fields

err: Error

The original error emitted.

Error emitted when serde fails to urlencod a struct of options

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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