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
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
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