pub struct RetryAfterError { /* private fields */ }Expand description
Execution should be retried after a specific duration This increases the attempts
Implementations§
Source§impl RetryAfterError
impl RetryAfterError
Sourcepub fn new<E: Into<BoxDynError>>(err: E, duration: Duration) -> Self
pub fn new<E: Into<BoxDynError>>(err: E, duration: Duration) -> Self
Create a new retry after error
Sourcepub fn get_duration(&self) -> Duration
pub fn get_duration(&self) -> Duration
Get the duration after which the task should be retried
Trait Implementations§
Source§impl Debug for RetryAfterError
impl Debug for RetryAfterError
Source§impl Display for RetryAfterError
impl Display for RetryAfterError
Source§impl Error for RetryAfterError
impl Error for RetryAfterError
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 RetryAfterError
impl !RefUnwindSafe for RetryAfterError
impl Send for RetryAfterError
impl Sync for RetryAfterError
impl Unpin for RetryAfterError
impl !UnwindSafe for RetryAfterError
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