pub struct UpstreamReconnect {
pub backoff_ms: i64,
pub max_attempts: i64,
pub on_exhausted: String,
}Expand description
reconnect: { backoff_ms: 500, max_attempts: 5, on_exhausted: fail } —
exponential backoff (doubling from backoff_ms, jittered at runtime), at
most max_attempts redials; on_exhausted is a closed catalog mirroring
budget’s style (v1 sole member fail — fail-closed, the flow sees the
exhaustion; degrade/park are named deferred scope).
Fields§
§backoff_ms: i64§max_attempts: i64§on_exhausted: StringTrait Implementations§
Source§impl Debug for UpstreamReconnect
impl Debug for UpstreamReconnect
Source§impl Default for UpstreamReconnect
impl Default for UpstreamReconnect
Source§fn default() -> UpstreamReconnect
fn default() -> UpstreamReconnect
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpstreamReconnect
impl RefUnwindSafe for UpstreamReconnect
impl Send for UpstreamReconnect
impl Sync for UpstreamReconnect
impl Unpin for UpstreamReconnect
impl UnsafeUnpin for UpstreamReconnect
impl UnwindSafe for UpstreamReconnect
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