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

pub enum Error {
    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,
    },
}

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

Generic error when reading a certificate from the filesystem

Fields of CertPathError

path: PathBuf

Path for the failing certificate file

CertMultipleKeys

Error emitted when multiple keys are found in a certificate file

Fields of CertMultipleKeys

count: usize

Number of keys found in the certificate file

path: PathBuf

Path for the failing certificate file

CertParseError

Parse error for RSA encrypted keys

Fields of CertParseError

path: PathBuf

Path for the failing certificate file

DockerResponseNotFoundError

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

Fields of DockerResponseNotFoundError

message: String

Message returned by the docker server.

DockerResponseServerError

Generic error emitted by the docker server.

Fields of DockerResponseServerError

status_code: u16

Status code returned by the docker server.

message: String

Message returned by the docker server.

DockerResponseBadParameterError

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

Fields of DockerResponseBadParameterError

message: String

Message returned by the docker server.

DockerResponseConflictError

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

Fields of DockerResponseConflictError

message: String

Message returned by the docker server.

DockerResponseNotModifiedError

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

Fields of DockerResponseNotModifiedError

message: String

Message returned by the docker server.

JsonDataError

Error facilitating debugging failed JSON parsing.

Fields of JsonDataError

message: String

Short section of the json close to the error.

contents: String

Entire JSON payload.

column: usize

Character sequence at error location.

APIVersionParseError

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

Fields of APIVersionParseError

api_version: String

The api version returned by the server.

JsonSerdeError

Error emitted when JSON fails to serialize.

Fields of JsonSerdeError

err: Error

The original error emitted by serde.

StrParseError

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

Fields of StrParseError

err: Utf8Error

The original error emitted.

IOError

Error emitted from an I/O error.

Fields of IOError

err: Error

The original error emitted.

StrFmtError

Error emitted from a formatting error.

Fields of StrFmtError

err: Error

The original error emitted.

HttpClientError

Error emitted from an HTTP error.

Fields of HttpClientError

err: Error

The original error emitted.

HyperResponseError

Error emitted from an HTTP error.

Fields of HyperResponseError

err: Error

The original error emitted.

RequestTimeoutError

Error emitted when a request times out.

URLEncodedError

Error emitted when serde fails to urlencod a struct of options

Fields of URLEncodedError

err: Error

The original error emitted.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Utf8Error> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.