Struct s2n_quic_core::transport::parameters::InitialMaxData
source · pub struct InitialMaxData(/* private fields */);Implementations§
source§impl InitialMaxData
impl InitialMaxData
sourcepub const RECOMMENDED: Self = _
pub const RECOMMENDED: Self = _
Tuned for 150Mbps with a 100ms RTT
Methods from Deref<Target = VarInt>§
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Clone for InitialMaxData
impl Clone for InitialMaxData
source§fn clone(&self) -> InitialMaxData
fn clone(&self) -> InitialMaxData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InitialMaxData
impl Debug for InitialMaxData
source§impl Default for InitialMaxData
impl Default for InitialMaxData
source§impl Deref for InitialMaxData
impl Deref for InitialMaxData
source§impl Ord for InitialMaxData
impl Ord for InitialMaxData
source§fn cmp(&self, other: &InitialMaxData) -> Ordering
fn cmp(&self, other: &InitialMaxData) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<VarInt> for InitialMaxData
impl PartialEq<VarInt> for InitialMaxData
source§impl PartialEq for InitialMaxData
impl PartialEq for InitialMaxData
source§fn eq(&self, other: &InitialMaxData) -> bool
fn eq(&self, other: &InitialMaxData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<VarInt> for InitialMaxData
impl PartialOrd<VarInt> for InitialMaxData
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd for InitialMaxData
impl PartialOrd for InitialMaxData
source§fn partial_cmp(&self, other: &InitialMaxData) -> Option<Ordering>
fn partial_cmp(&self, other: &InitialMaxData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TransportParameter for InitialMaxData
impl TransportParameter for InitialMaxData
§type CodecValue = VarInt
type CodecValue = VarInt
Associated type for decoding/encoding the TransportParameter
source§fn from_codec_value(value: Self::CodecValue) -> Self
fn from_codec_value(value: Self::CodecValue) -> Self
Create a
TransportParameter from the CodecValuesource§fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
Attempts to convert the
TransportParameter into the CodecValuesource§fn default_value() -> Self
fn default_value() -> Self
Returns the default value for the TransportParameter
This is used instead of
Default::default so it is
easily overridablesource§impl TransportParameterValidator for InitialMaxData
impl TransportParameterValidator for InitialMaxData
source§fn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
source§impl TryFrom<VarInt> for InitialMaxData
impl TryFrom<VarInt> for InitialMaxData
source§impl TryFrom<u64> for InitialMaxData
impl TryFrom<u64> for InitialMaxData
impl Copy for InitialMaxData
impl Eq for InitialMaxData
impl StructuralEq for InitialMaxData
impl StructuralPartialEq for InitialMaxData
Auto Trait Implementations§
impl RefUnwindSafe for InitialMaxData
impl Send for InitialMaxData
impl Sync for InitialMaxData
impl Unpin for InitialMaxData
impl UnwindSafe for InitialMaxData
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