pub enum FaithErrorKind {
Show 23 variants
Aborted,
AddressParse,
BodyStream,
Closed,
Config,
ContentLengthOverrun,
FileExists,
FileWrite,
IntegrityMismatch,
InvalidCompression,
InvalidHeader,
InvalidIntegrity,
InvalidMethod,
InvalidPath,
InvalidUrl,
JsonParse,
MissingContentType,
Network,
PemParse,
Redirect,
ResponseAlreadyDisturbed,
ResponseBodyNull,
Timeout,
}Expand description
The kind of a FaithError.
Match on the kind; the message is for humans and may change.
Variants§
Aborted
The request was aborted by its caller.
AddressParse
An IP address or port in the options did not parse.
BodyStream
The response body stream failed partway through.
Closed
The agent has been closed.
Config
The agent options were invalid.
ContentLengthOverrun
The response body ran past the Content-Length it advertised.
FileExists
The destination file already exists and overwriting was not asked for.
FileWrite
The destination file could not be written.
IntegrityMismatch
The body did not match the integrity digests.
InvalidCompression
The compress option did not name a coding.
InvalidHeader
A header name or value was not valid.
InvalidIntegrity
The integrity value did not parse.
InvalidMethod
The method was not a valid HTTP method.
InvalidPath
The destination did not name a local path.
InvalidUrl
The URL did not parse.
JsonParse
The response body was not valid JSON.
MissingContentType
A QUERY request carried a body with no Content-Type to describe it.
Network
The request failed on the network.
PemParse
A client certificate or key was not valid PEM.
Redirect
A redirect was refused, per the error redirect policy.
ResponseAlreadyDisturbed
The body has already been read, or handed out as a stream.
ResponseBodyNull
The response cannot carry a body.
Timeout
The request outlived its timeout.
Trait Implementations§
Source§impl Clone for FaithErrorKind
impl Clone for FaithErrorKind
impl Copy for FaithErrorKind
Source§impl Debug for FaithErrorKind
impl Debug for FaithErrorKind
impl Eq for FaithErrorKind
Source§impl From<FaithErrorKind> for FaithError
impl From<FaithErrorKind> for FaithError
Source§fn from(kind: FaithErrorKind) -> Self
fn from(kind: FaithErrorKind) -> Self
Source§impl PartialEq for FaithErrorKind
impl PartialEq for FaithErrorKind
impl StructuralPartialEq for FaithErrorKind
Auto Trait Implementations§
impl Freeze for FaithErrorKind
impl RefUnwindSafe for FaithErrorKind
impl Send for FaithErrorKind
impl Sync for FaithErrorKind
impl Unpin for FaithErrorKind
impl UnsafeUnpin for FaithErrorKind
impl UnwindSafe for FaithErrorKind
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more