pub struct BackpressureEntry {
pub notices_sent: u32,
pub last_notice_at_ns: u64,
pub last_min_backoff_ns: u64,
pub silent_drop_active: bool,
}Expand description
Per-peer back-pressure bookkeeping.
Fields§
§notices_sent: u32Total notices emitted to this peer since the last reset.
Reset to 0 when the peer’s φ collapses back below Suspect.
last_notice_at_ns: u64now_ns recorded at the most recent notice emission.
0 if none have been emitted yet. Used together with
last_min_backoff_ns to suppress redundant notices inside
the previously-quoted back-off window.
last_min_backoff_ns: u64min_backoff_ns quoted on the most recent notice. The
duplicate-suppression check skips emission while
now_ns < last_notice_at_ns + last_min_backoff_ns. 0
when no notice has been emitted yet.
silent_drop_active: booltrue once notices_sent >= K without observed recovery.
Phase 1 of Engine::poll drops envelopes from this peer
while set.
Trait Implementations§
Source§impl Clone for BackpressureEntry
impl Clone for BackpressureEntry
Source§fn clone(&self) -> BackpressureEntry
fn clone(&self) -> BackpressureEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackpressureEntry
Source§impl Debug for BackpressureEntry
impl Debug for BackpressureEntry
Source§impl Default for BackpressureEntry
impl Default for BackpressureEntry
Source§fn default() -> BackpressureEntry
fn default() -> BackpressureEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackpressureEntry
impl RefUnwindSafe for BackpressureEntry
impl Send for BackpressureEntry
impl Sync for BackpressureEntry
impl Unpin for BackpressureEntry
impl UnsafeUnpin for BackpressureEntry
impl UnwindSafe for BackpressureEntry
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
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> ErasedComponent for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request