#[non_exhaustive]pub struct BackendRetry {
pub max_attempts: Option<u32>,
pub base_backoff: Option<Duration>,
}Expand description
Retry policy shared across backend connections. Additive; Stage 1a ships the minimal shape so the trait signatures can reference it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_attempts: Option<u32>Max retry attempts on transient transport errors. None ⇒
backend default.
base_backoff: Option<Duration>Base backoff. None ⇒ backend default.
Trait Implementations§
Source§impl Clone for BackendRetry
impl Clone for BackendRetry
Source§fn clone(&self) -> BackendRetry
fn clone(&self) -> BackendRetry
Returns a duplicate 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 BackendRetry
impl Debug for BackendRetry
Source§impl Default for BackendRetry
impl Default for BackendRetry
Source§fn default() -> BackendRetry
fn default() -> BackendRetry
Returns the “default value” for a type. Read more
Source§impl PartialEq for BackendRetry
impl PartialEq for BackendRetry
impl Eq for BackendRetry
impl StructuralPartialEq for BackendRetry
Auto Trait Implementations§
impl Freeze for BackendRetry
impl RefUnwindSafe for BackendRetry
impl Send for BackendRetry
impl Sync for BackendRetry
impl Unpin for BackendRetry
impl UnsafeUnpin for BackendRetry
impl UnwindSafe for BackendRetry
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