pub enum RetryClass {
Interactive,
BulkTransfer,
ControlCeremony,
}Expand description
The three retry policy classes every retrying surface instantiates. Universal rules (owned by the Network Resilience doc): exponential backoff with full jitter, honor server backoff signals, bounded give-up surfaced to the user, never hot-loop.
Variants§
Interactive
Short timeout, ≤ 2 retries, then a visible failure state.
BulkTransfer
Resume-first (HEAD offset / Range), patient within the session lifetime.
ControlCeremony
Slow ladder, long horizon, never abandons silently (MLS recovery, federation circuit breaker are instances).
Implementations§
Source§impl RetryClass
impl RetryClass
Sourcepub fn policy(self) -> RetryPolicy
pub fn policy(self) -> RetryPolicy
The canonical RetryPolicy for this class (networking doc, “Retry Policy
Classes”). The three per-doc retry ladders are instances of this shared
shape, not reinventions — sync, upload, and fetch each build a
RetryEngine from one of these.
Sourcepub fn engine(self) -> RetryEngine
pub fn engine(self) -> RetryEngine
A fresh RetryEngine instance for this class, with production full-jitter
seeded from the wall clock. The single constructor sync/upload/fetch call.
Trait Implementations§
Source§impl Clone for RetryClass
impl Clone for RetryClass
Source§fn clone(&self) -> RetryClass
fn clone(&self) -> RetryClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RetryClass
Source§impl Debug for RetryClass
impl Debug for RetryClass
impl Eq for RetryClass
Source§impl PartialEq for RetryClass
impl PartialEq for RetryClass
Source§fn eq(&self, other: &RetryClass) -> bool
fn eq(&self, other: &RetryClass) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RetryClass
Auto Trait Implementations§
impl Freeze for RetryClass
impl RefUnwindSafe for RetryClass
impl Send for RetryClass
impl Sync for RetryClass
impl Unpin for RetryClass
impl UnsafeUnpin for RetryClass
impl UnwindSafe for RetryClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more