pub enum Failure {
Unreachable(String),
TimedOut(i64),
BadResponse(String),
}Expand description
Why no reply came back.
Three cases, because three are distinguishable by an implementation. A fourth that said
“something went wrong” would be a Str with extra steps.
Variants§
Unreachable(String)
Connect or write failed, or nothing is listening.
TimedOut(i64)
The exchange did not finish inside the deadline the implementation was given.
BadResponse(String)
Bytes arrived and were not an HTTP response.
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnwindSafe for Failure
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