pub enum SendWithRetryError {
Http(HttpResponse, Attempts),
Timeout(Attempts),
Network(ClientError, Attempts),
Build(Attempts),
}Expand description
All errors contain the number of attempts after which the final error was returned
Variants§
Http(HttpResponse, Attempts)
The request received an error HTTP code.
Timeout(Attempts)
Treats timeout errors originated in the transport layer.
Network(ClientError, Attempts)
Treats errors coming from networking.
Build(Attempts)
Treats errors coming from building the request
Trait Implementations§
Source§impl Debug for SendWithRetryError
impl Debug for SendWithRetryError
Source§impl Display for SendWithRetryError
impl Display for SendWithRetryError
Source§impl Error for SendWithRetryError
impl Error for SendWithRetryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for SendWithRetryError
impl !RefUnwindSafe for SendWithRetryError
impl Send for SendWithRetryError
impl Sync for SendWithRetryError
impl Unpin for SendWithRetryError
impl !UnwindSafe for SendWithRetryError
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