Struct s2n_quic_core::transport::parameters::MaxIdleTimeout
source · [−]pub struct MaxIdleTimeout(_);Implementations
sourceimpl MaxIdleTimeout
impl MaxIdleTimeout
sourcepub const RECOMMENDED: Self = Self(VarInt::from_u32(30_000))
pub const RECOMMENDED: Self = Self(VarInt::from_u32(30_000))
Defaults to 30 seconds
sourcepub fn load_peer(&mut self, peer: &Self)
pub fn load_peer(&mut self, peer: &Self)
Loads a value setting from a peer’s transport parameter
sourcepub fn as_duration(&self) -> Option<Duration>
pub fn as_duration(&self) -> Option<Duration>
Returns the max_idle_timeout if set
Methods from Deref<Target = VarInt>
Methods from Deref<Target = u64>
Trait Implementations
sourceimpl Clone for MaxIdleTimeout
impl Clone for MaxIdleTimeout
sourcefn clone(&self) -> MaxIdleTimeout
fn clone(&self) -> MaxIdleTimeout
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 MaxIdleTimeout
impl Debug for MaxIdleTimeout
sourceimpl Default for MaxIdleTimeout
impl Default for MaxIdleTimeout
sourceimpl Deref for MaxIdleTimeout
impl Deref for MaxIdleTimeout
sourceimpl From<MaxIdleTimeout> for Duration
impl From<MaxIdleTimeout> for Duration
sourcefn from(value: MaxIdleTimeout) -> Self
fn from(value: MaxIdleTimeout) -> Self
Converts to this type from the input type.
sourceimpl Ord for MaxIdleTimeout
impl Ord for MaxIdleTimeout
sourceimpl PartialEq<MaxIdleTimeout> for MaxIdleTimeout
impl PartialEq<MaxIdleTimeout> for MaxIdleTimeout
sourcefn eq(&self, other: &MaxIdleTimeout) -> bool
fn eq(&self, other: &MaxIdleTimeout) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MaxIdleTimeout) -> bool
fn ne(&self, other: &MaxIdleTimeout) -> bool
This method tests for !=.
sourceimpl PartialEq<VarInt> for MaxIdleTimeout
impl PartialEq<VarInt> for MaxIdleTimeout
sourceimpl PartialOrd<MaxIdleTimeout> for MaxIdleTimeout
impl PartialOrd<MaxIdleTimeout> for MaxIdleTimeout
sourcefn partial_cmp(&self, other: &MaxIdleTimeout) -> Option<Ordering>
fn partial_cmp(&self, other: &MaxIdleTimeout) -> 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 MaxIdleTimeout
impl PartialOrd<VarInt> for MaxIdleTimeout
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 MaxIdleTimeout
impl TransportParameter for MaxIdleTimeout
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 MaxIdleTimeout
impl TransportParameterValidator for MaxIdleTimeout
sourcefn validate(self) -> Result<Self, DecoderError>
fn validate(self) -> Result<Self, DecoderError>
Validates that the transport parameter is in a valid state
sourceimpl TryFrom<Duration> for MaxIdleTimeout
impl TryFrom<Duration> for MaxIdleTimeout
sourceimpl TryFrom<VarInt> for MaxIdleTimeout
impl TryFrom<VarInt> for MaxIdleTimeout
impl Copy for MaxIdleTimeout
impl Eq for MaxIdleTimeout
impl StructuralEq for MaxIdleTimeout
impl StructuralPartialEq for MaxIdleTimeout
Auto Trait Implementations
impl RefUnwindSafe for MaxIdleTimeout
impl Send for MaxIdleTimeout
impl Sync for MaxIdleTimeout
impl Unpin for MaxIdleTimeout
impl UnwindSafe for MaxIdleTimeout
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