pub enum TransportRetryMode {
AllTransportErrors,
PreDispatchOnly,
}Expand description
Which transport errors are eligible for retry.
A request whose body may already have been dispatched to the server can be ambiguous: retrying may double-charge or duplicate a side effect. This mirrors the A14 boundary documented in lc-providers.
Variants§
AllTransportErrors
Retry on connect, timeout and generic request errors. Better availability; carries a small double-dispatch risk.
PreDispatchOnly
Retry only on errors known to have happened before the request was dispatched (connect failures). Safe for non-idempotent calls.
Trait Implementations§
Source§impl Clone for TransportRetryMode
impl Clone for TransportRetryMode
impl Copy for TransportRetryMode
Source§impl Debug for TransportRetryMode
impl Debug for TransportRetryMode
impl Eq for TransportRetryMode
Source§impl PartialEq for TransportRetryMode
impl PartialEq for TransportRetryMode
impl StructuralPartialEq for TransportRetryMode
Auto Trait Implementations§
impl Freeze for TransportRetryMode
impl RefUnwindSafe for TransportRetryMode
impl Send for TransportRetryMode
impl Sync for TransportRetryMode
impl Unpin for TransportRetryMode
impl UnsafeUnpin for TransportRetryMode
impl UnwindSafe for TransportRetryMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.