pub enum ErrorLayer {
Dns,
TcpConnect,
Tls,
HttpProtocol,
HttpStatus,
Application,
Unknown,
}Expand description
Transport / protocol layer of a failure (Rules checklist ErrorLayer).
Reqwest/hyper does not always separate DNS from TCP or TLS handshake from
connect; TcpConnect covers DNS+TCP+TLS establishment when only
is_connect() is available.
Variants§
Dns
Name resolution (when distinguishable; else folded into Self::TcpConnect).
TcpConnect
TCP connect / peer unreachable (includes DNS when not separated).
Tls
TLS handshake failure (when distinguishable).
HttpProtocol
HTTP/1.1 or HTTP/2 protocol error after connect.
HttpStatus
HTTP status from a completed response.
Application
Application / parse / budget after a successful body read.
Unknown
Unclassified.
Implementations§
Trait Implementations§
Source§impl Clone for ErrorLayer
impl Clone for ErrorLayer
Source§fn clone(&self) -> ErrorLayer
fn clone(&self) -> ErrorLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErrorLayer
Source§impl Debug for ErrorLayer
impl Debug for ErrorLayer
impl Eq for ErrorLayer
Source§impl PartialEq for ErrorLayer
impl PartialEq for ErrorLayer
impl StructuralPartialEq for ErrorLayer
Auto Trait Implementations§
impl Freeze for ErrorLayer
impl RefUnwindSafe for ErrorLayer
impl Send for ErrorLayer
impl Sync for ErrorLayer
impl Unpin for ErrorLayer
impl UnsafeUnpin for ErrorLayer
impl UnwindSafe for ErrorLayer
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
Mutably borrows from an owned value. Read more
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§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
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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