pub struct ActiveConnectionIdLimit(/* private fields */);Implementations§
Source§impl ActiveConnectionIdLimit
impl ActiveConnectionIdLimit
Sourcepub const RECOMMENDED: Self
pub const RECOMMENDED: Self
The recommended value comes from the default of 2
Source§impl ActiveConnectionIdLimit
impl ActiveConnectionIdLimit
Sourcepub fn is_default(self) -> bool
pub fn is_default(self) -> bool
Returns true if the specified value is the default
Trait Implementations§
Source§impl Clone for ActiveConnectionIdLimit
impl Clone for ActiveConnectionIdLimit
Source§fn clone(&self) -> ActiveConnectionIdLimit
fn clone(&self) -> ActiveConnectionIdLimit
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 ActiveConnectionIdLimit
impl Debug for ActiveConnectionIdLimit
Source§impl Default for ActiveConnectionIdLimit
impl Default for ActiveConnectionIdLimit
Source§impl Deref for ActiveConnectionIdLimit
impl Deref for ActiveConnectionIdLimit
Source§impl Ord for ActiveConnectionIdLimit
impl Ord for ActiveConnectionIdLimit
Source§fn cmp(&self, other: &ActiveConnectionIdLimit) -> Ordering
fn cmp(&self, other: &ActiveConnectionIdLimit) -> 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 ActiveConnectionIdLimit
impl PartialEq<VarInt> for ActiveConnectionIdLimit
Source§impl PartialEq for ActiveConnectionIdLimit
impl PartialEq for ActiveConnectionIdLimit
Source§impl PartialOrd<VarInt> for ActiveConnectionIdLimit
impl PartialOrd<VarInt> for ActiveConnectionIdLimit
Source§impl PartialOrd for ActiveConnectionIdLimit
impl PartialOrd for ActiveConnectionIdLimit
Source§impl TransportParameter for ActiveConnectionIdLimit
impl TransportParameter for ActiveConnectionIdLimit
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 ActiveConnectionIdLimit
impl TransportParameterValidator for ActiveConnectionIdLimit
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 ActiveConnectionIdLimit
impl TryFrom<VarInt> for ActiveConnectionIdLimit
Source§impl TryFrom<u64> for ActiveConnectionIdLimit
impl TryFrom<u64> for ActiveConnectionIdLimit
impl Copy for ActiveConnectionIdLimit
impl Eq for ActiveConnectionIdLimit
impl StructuralPartialEq for ActiveConnectionIdLimit
Auto Trait Implementations§
impl Freeze for ActiveConnectionIdLimit
impl RefUnwindSafe for ActiveConnectionIdLimit
impl Send for ActiveConnectionIdLimit
impl Sync for ActiveConnectionIdLimit
impl Unpin for ActiveConnectionIdLimit
impl UnwindSafe for ActiveConnectionIdLimit
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