#[non_exhaustive]pub struct WindowSummary {
pub capacity: usize,
pub peak: usize,
pub reductions: u32,
pub adaptive: bool,
pub at_floor: bool,
}Expand description
What a CongestionWindow did over one run.
Says whether pacing engaged and how hard, which tells “this host is firewalled” from “this host was asked too fast”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capacity: usizeThe window at the end of the run.
peak: usizeThe largest it reached.
reductions: u32How many times it was cut.
adaptive: boolWhether it was allowed to move at all.
at_floor: boolWhether it finished cut back as far as it is permitted to go.
The scan was still being outrun when it stopped, so recorded silence may be loss. The remedy is a narrower scan.
Implementations§
Trait Implementations§
Source§impl Clone for WindowSummary
impl Clone for WindowSummary
impl Copy for WindowSummary
Source§impl Debug for WindowSummary
impl Debug for WindowSummary
Source§impl Display for WindowSummary
impl Display for WindowSummary
impl Eq for WindowSummary
Source§impl From<&WindowRecord> for WindowSummary
impl From<&WindowRecord> for WindowSummary
Source§fn from(record: &WindowRecord) -> Self
fn from(record: &WindowRecord) -> Self
Converts to this type from the input type.
Source§impl From<WindowSummary> for WindowRecord
impl From<WindowSummary> for WindowRecord
Source§fn from(window: WindowSummary) -> Self
fn from(window: WindowSummary) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WindowSummary
impl PartialEq for WindowSummary
impl StructuralPartialEq for WindowSummary
Auto Trait Implementations§
impl Freeze for WindowSummary
impl RefUnwindSafe for WindowSummary
impl Send for WindowSummary
impl Sync for WindowSummary
impl Unpin for WindowSummary
impl UnsafeUnpin for WindowSummary
impl UnwindSafe for WindowSummary
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more