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
impl 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.