Skip to main content

RejectCounts

Struct RejectCounts 

Source
pub struct RejectCounts {
    pub malformed: u64,
    pub epoch: u64,
    pub shape: u64,
    pub delivered: u64,
    pub window: u64,
    pub block_shape: u64,
    pub delivered_lo: Option<u32>,
    pub delivered_hi: Option<u32>,
    pub seen_lo: Option<u32>,
    pub seen_hi: Option<u32>,
}
Expand description

Datagrams a Decoder refused at ingest, one counter per reason.

A shard that reaches the process and is then dropped leaves no other trace: the window simply does not advance. These counters are that trace. A stalled window whose epoch count is climbing is being fed by a peer whose session stamp disagrees with the one adopted; one whose delivered count is climbing is being fed blocks it has already emitted.

Fields§

§malformed: u64

Not a DATA datagram, or shorter than the fixed header.

§epoch: u64

Carries a session epoch other than the one this decoder holds.

§shape: u64

Header shard geometry is unusable: no data shards, more shards than the codeword allows, or an index outside the codeword.

§delivered: u64

Names a block already delivered to the caller.

§window: u64

Names a block beyond the reassembly window’s ceiling.

§block_shape: u64

Shard length or codeword shape disagrees with the block it would join, which symbol-wise FEC cannot mix.

§delivered_lo: Option<u32>

Lowest and highest block id refused as already delivered. A stalled window names which blocks are being re-offered, which separates surplus parity on the block just completed from a peer replaying a range the window passed long ago.

§delivered_hi: Option<u32>§seen_lo: Option<u32>

Lowest and highest block id SEEN at ingest, recorded before any gate runs. A block the encoder says it sent that never appears here was lost below the decoder; one that appears without advancing the window was taken by a path that neither delivers nor refuses.

§seen_hi: Option<u32>

Implementations§

Source§

impl RejectCounts

Source

pub fn total(&self) -> u64

Every refusal, summed.

Trait Implementations§

Source§

impl Clone for RejectCounts

Source§

fn clone(&self) -> RejectCounts

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RejectCounts

Source§

impl Debug for RejectCounts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RejectCounts

Source§

fn default() -> RejectCounts

Returns the “default value” for a type. Read more
Source§

impl Eq for RejectCounts

Source§

impl PartialEq for RejectCounts

Source§

fn eq(&self, other: &RejectCounts) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RejectCounts

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.