pub struct NativeRetryPolicy;Expand description
The default policy: it always applies what the runner proposes, leaving
fdb_transaction_on_error the last word on retries.
Trait Implementations§
Source§impl Clone for NativeRetryPolicy
impl Clone for NativeRetryPolicy
Source§fn clone(&self) -> NativeRetryPolicy
fn clone(&self) -> NativeRetryPolicy
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 NativeRetryPolicy
impl Debug for NativeRetryPolicy
Source§impl Default for NativeRetryPolicy
impl Default for NativeRetryPolicy
Source§fn default() -> NativeRetryPolicy
fn default() -> NativeRetryPolicy
Returns the “default value” for a type. Read more
Source§impl<E> RetryPolicy<E> for NativeRetryPolicy
impl<E> RetryPolicy<E> for NativeRetryPolicy
Source§fn decide(
&self,
_failure: AttemptFailure<'_, E>,
proposed: RetryDecision,
_attempt: usize,
) -> RetryDecision
fn decide( &self, _failure: AttemptFailure<'_, E>, proposed: RetryDecision, _attempt: usize, ) -> RetryDecision
Returns the decision to apply for
failure, proposed being what the
runner would do on its own.impl Copy for NativeRetryPolicy
Auto Trait Implementations§
impl Freeze for NativeRetryPolicy
impl RefUnwindSafe for NativeRetryPolicy
impl Send for NativeRetryPolicy
impl Sync for NativeRetryPolicy
impl Unpin for NativeRetryPolicy
impl UnwindSafe for NativeRetryPolicy
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