pub enum TransportError {
Connect(String),
Timeout {
sent: bool,
},
Io(String),
Protocol(String),
}Expand description
Why the call failed, and whether the server may have received the request.
Variants§
Connect(String)
Failure before sending any byte of the request (DNS, refusal, TLS handshake).
Timeout
Time ran out; sent says whether the request had already been written.
Io(String)
Network failure after starting to send.
Protocol(String)
The response is not valid HTTP.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
impl Eq for TransportError
Source§impl PartialEq for TransportError
impl PartialEq for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl Freeze for TransportError
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
impl UnwindSafe for TransportError
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