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
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 ActiveConnectionIdLimit
impl Clone for ActiveConnectionIdLimit
source§fn clone(&self) -> ActiveConnectionIdLimit
fn clone(&self) -> ActiveConnectionIdLimit
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 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§fn eq(&self, other: &ActiveConnectionIdLimit) -> bool
fn eq(&self, other: &ActiveConnectionIdLimit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VarInt> for ActiveConnectionIdLimit
impl PartialOrd<VarInt> for ActiveConnectionIdLimit
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 ActiveConnectionIdLimit
impl PartialOrd for ActiveConnectionIdLimit
source§fn partial_cmp(&self, other: &ActiveConnectionIdLimit) -> Option<Ordering>
fn partial_cmp(&self, other: &ActiveConnectionIdLimit) -> 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 ActiveConnectionIdLimit
impl TransportParameter for ActiveConnectionIdLimit
§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 CodecValue
source§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 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