pub enum Error {
B64DecodingError {
source: DecodeError,
},
CertificateParseError {
source: Error,
},
CryptoError {
source: ErrorStack,
},
HttpClientError {
source: Error,
},
HttpClientRequestBuilderError {
source: Error,
},
HttpClientResponseError {
status: u16,
},
HttpClientTimeoutError {
source: Elapsed,
},
HttpUriError {
source: InvalidUri,
},
IoError {
source: Error,
},
JsonDeserializationError {
source: Error,
},
JsonSerializationError {
source: Error,
},
MalformedResponseError {},
}
Expand description
Docker client errors.
Variants§
B64DecodingError
Failed to decode a base64 encoded field.
Fields
§
source: DecodeError
CertificateParseError
Failed to parse a TLS certificate.
CryptoError
General TLS error.
Fields
§
source: ErrorStack
HttpClientError
General HTTP client error.
HttpClientRequestBuilderError
Failed to build HTTP client request.
HttpClientResponseError
Bad response to HTTP request.
HttpClientTimeoutError
HTTP request timed out.
HttpUriError
Invalid HTTP address.
Fields
§
source: InvalidUri
IoError
General IO errors.
JsonDeserializationError
Failed to deserialize json response.
JsonSerializationError
Failed to serialize json request.
MalformedResponseError
Unexpected response from Docker api.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Mutably borrows from an owned value. Read more