Struct apalis_core::layers::retry::DefaultRetryPolicy
source · pub struct DefaultRetryPolicy;Available on crate feature
retry only.Expand description
Retries a job instantly until max_attempts
Trait Implementations§
source§impl Clone for DefaultRetryPolicy
impl Clone for DefaultRetryPolicy
source§fn clone(&self) -> DefaultRetryPolicy
fn clone(&self) -> DefaultRetryPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DefaultRetryPolicy
impl Debug for DefaultRetryPolicy
source§impl<T, Res> Policy<JobRequest<T>, Res, JobError> for DefaultRetryPolicywhere
T: Clone,
impl<T, Res> Policy<JobRequest<T>, Res, JobError> for DefaultRetryPolicywhere T: Clone,
§type Future = Ready<DefaultRetryPolicy>
type Future = Ready<DefaultRetryPolicy>
The
Future type returned by Policy::retry.source§fn retry(
&self,
req: &JobRequest<T>,
result: Result<&Res, &JobError>
) -> Option<Self::Future>
fn retry( &self, req: &JobRequest<T>, result: Result<&Res, &JobError> ) -> Option<Self::Future>
Check the policy if a certain request should be retried. Read more
source§fn clone_request(&self, req: &JobRequest<T>) -> Option<JobRequest<T>>
fn clone_request(&self, req: &JobRequest<T>) -> Option<JobRequest<T>>
Tries to clone a request before being passed to the inner service. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DefaultRetryPolicy
impl Send for DefaultRetryPolicy
impl Sync for DefaultRetryPolicy
impl Unpin for DefaultRetryPolicy
impl UnwindSafe for DefaultRetryPolicy
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