Struct s2n_quic_core::transport::parameters::InitialMaxData
source · [−]pub struct InitialMaxData(_);Implementations
sourceimpl InitialMaxData
impl InitialMaxData
sourceimpl InitialMaxData
impl InitialMaxData
sourcepub const RECOMMENDED: Self = Self(compute_data_window(150, Duration::from_millis(100), 2))
pub const RECOMMENDED: Self = Self(compute_data_window(150, Duration::from_millis(100), 2))
Tuned for 150Mbps with a 100ms RTT
Methods from Deref<Target = VarInt>
Methods from Deref<Target = u64>
Trait Implementations
sourceimpl Clone for InitialMaxData
impl Clone for InitialMaxData
sourcefn clone(&self) -> InitialMaxData
fn clone(&self) -> InitialMaxData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InitialMaxData
impl Debug for InitialMaxData
sourceimpl Default for InitialMaxData
impl Default for InitialMaxData
sourceimpl Deref for InitialMaxData
impl Deref for InitialMaxData
sourceimpl Ord for InitialMaxData
impl Ord for InitialMaxData
sourceimpl PartialEq<InitialMaxData> for InitialMaxData
impl PartialEq<InitialMaxData> for InitialMaxData
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &InitialMaxData) -> bool
fn ne(&self, other: &InitialMaxData) -> bool
This method tests for !=.
sourceimpl PartialEq<VarInt> for InitialMaxData
impl PartialEq<VarInt> for InitialMaxData
sourceimpl PartialOrd<InitialMaxData> for InitialMaxData
impl PartialOrd<InitialMaxData> for InitialMaxData
sourcefn partial_cmp(&self, other: &InitialMaxData) -> Option<Ordering>
fn partial_cmp(&self, other: &InitialMaxData) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl PartialOrd<VarInt> for InitialMaxData
impl PartialOrd<VarInt> for InitialMaxData
sourcefn partial_cmp(&self, value: &VarInt) -> Option<Ordering>
fn partial_cmp(&self, value: &VarInt) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl TransportParameter for InitialMaxData
impl TransportParameter for InitialMaxData
type CodecValue = VarInt
type CodecValue = VarInt
Associated type for decoding/encoding the TransportParameter
sourcefn from_codec_value(value: Self::CodecValue) -> Self
fn from_codec_value(value: Self::CodecValue) -> Self
Create a TransportParameter from the CodecValue
sourcefn try_into_codec_value(&self) -> Option<&Self::CodecValue>
fn try_into_codec_value(&self) -> Option<&Self::CodecValue>
Attempts to convert the TransportParameter into the CodecValue
sourcefn 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 overridable Read more
sourceimpl TransportParameterValidator for InitialMaxData
impl TransportParameterValidator for InitialMaxData
sourcefn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
sourceimpl TryFrom<VarInt> for InitialMaxData
impl TryFrom<VarInt> for InitialMaxData
sourceimpl 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
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