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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.