pub enum TransportErrorKind {
Timeout,
Connect,
HttpStatus,
ResponseBody,
Other,
}Expand description
Transport-layer error category for machine-actionable handling.
Variants§
Timeout
Request timed out.
Connect
Connection establishment failed.
HttpStatus
Non-success HTTP status code not covered by dedicated variants.
ResponseBody
Failed reading HTTP response body.
Other
Other transport-level request/response failure.
Trait Implementations§
Source§impl Clone for TransportErrorKind
impl Clone for TransportErrorKind
Source§fn clone(&self) -> TransportErrorKind
fn clone(&self) -> TransportErrorKind
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 TransportErrorKind
Source§impl Debug for TransportErrorKind
impl Debug for TransportErrorKind
impl Eq for TransportErrorKind
Source§impl PartialEq for TransportErrorKind
impl PartialEq for TransportErrorKind
Source§fn eq(&self, other: &TransportErrorKind) -> bool
fn eq(&self, other: &TransportErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransportErrorKind
Auto Trait Implementations§
impl Freeze for TransportErrorKind
impl RefUnwindSafe for TransportErrorKind
impl Send for TransportErrorKind
impl Sync for TransportErrorKind
impl Unpin for TransportErrorKind
impl UnsafeUnpin for TransportErrorKind
impl UnwindSafe for TransportErrorKind
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.