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
Trait Implementations§
Source§impl Clone for InitialMaxData
impl Clone for InitialMaxData
Source§fn clone(&self) -> InitialMaxData
fn clone(&self) -> InitialMaxData
Returns a duplicate 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§impl PartialOrd<VarInt> for InitialMaxData
impl PartialOrd<VarInt> for InitialMaxData
Source§impl PartialOrd for InitialMaxData
impl PartialOrd for InitialMaxData
Source§impl TransportParameter for InitialMaxData
impl TransportParameter for InitialMaxData
Source§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§fn append_to_buffer(&self, buffer: &mut Vec<u8>)
fn append_to_buffer(&self, buffer: &mut Vec<u8>)
Appends this
TransportParameter to the given buffer containing
already encoded TransportParametersSource§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 StructuralPartialEq for InitialMaxData
Auto Trait Implementations§
impl Freeze for InitialMaxData
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