Fields
ect_0_count: VarIntA variable-length integer representing the total number of packets received with the ECT(0) codepoint.
ect_1_count: VarIntA variable-length integer representing the total number of packets received with the ECT(1) codepoint.
ce_count: VarIntA variable-length integer representing the total number of packets received with the CE codepoint.
Implementations
sourceimpl EcnCounts
impl EcnCounts
Trait Implementations
sourceimpl CheckedSub<EcnCounts> for EcnCounts
impl CheckedSub<EcnCounts> for EcnCounts
sourceimpl<'a> DecoderValue<'a> for EcnCounts
impl<'a> DecoderValue<'a> for EcnCounts
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
sourceimpl<'a> DecoderValueMut<'a> for EcnCounts
impl<'a> DecoderValueMut<'a> for EcnCounts
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
sourceimpl EncoderValue for EcnCounts
impl EncoderValue for EcnCounts
sourcefn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E) where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
sourcefn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
sourcefn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usize where
E: Encoder,
Returns the encoding size for the given encoder’s capacity
sourceimpl SubAssign<EcnCounts> for EcnCounts
impl SubAssign<EcnCounts> for EcnCounts
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -= operation. Read more
impl Copy for EcnCounts
impl Eq for EcnCounts
impl StructuralEq for EcnCounts
impl StructuralPartialEq for EcnCounts
Auto Trait Implementations
impl RefUnwindSafe for EcnCounts
impl Send for EcnCounts
impl Sync for EcnCounts
impl Unpin for EcnCounts
impl UnwindSafe for EcnCounts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PacketPayloadEncoder for T where
T: EncoderValue,
impl<T> PacketPayloadEncoder for T where
T: EncoderValue,
sourcefn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usize where
E: Encoder,
Returns an estimate of the encoding size of the payload. This may be inaccurate from what actually is encoded. Estimates should be less than or equal to what is actually written. Implementations can return 0 to skip encoding. Read more