#[non_exhaustive]pub struct ApplicationParams {
pub max_datagram_size: AtomicU16,
pub remote_max_data: VarInt,
pub local_send_max_data: VarInt,
pub local_recv_max_data: VarInt,
pub max_idle_timeout: Option<NonZeroU32>,
}Expand description
Various settings relevant to the dc path
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_datagram_size: AtomicU16§remote_max_data: VarInt§local_send_max_data: VarInt§local_recv_max_data: VarInt§max_idle_timeout: Option<NonZeroU32>Implementations§
Source§impl ApplicationParams
impl ApplicationParams
pub fn new( max_datagram_size: u16, peer_flow_control_limits: &InitialFlowControlLimits, limits: &Limits, ) -> Self
pub fn max_idle_timeout(&self) -> Option<Duration>
pub fn max_datagram_size(&self) -> u16
Trait Implementations§
Source§impl Clone for ApplicationParams
impl Clone for ApplicationParams
Source§impl Debug for ApplicationParams
impl Debug for ApplicationParams
Source§impl<'a> DecoderValue<'a> for ApplicationParams
impl<'a> DecoderValue<'a> for ApplicationParams
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
Source§impl<'a> DecoderValueMut<'a> for ApplicationParams
impl<'a> DecoderValueMut<'a> for ApplicationParams
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
Source§impl EncoderValue for ApplicationParams
impl EncoderValue for ApplicationParams
Source§fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
Source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
Source§fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usizewhere
E: Encoder,
fn encoding_size_for_encoder<E>(&self, encoder: &E) -> usizewhere
E: Encoder,
Returns the encoding size for the given encoder’s capacity
Source§fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
Encodes the value into the encoder with a prefix of
Lenfn encode_to_vec(&self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl !Freeze for ApplicationParams
impl RefUnwindSafe for ApplicationParams
impl Send for ApplicationParams
impl Sync for ApplicationParams
impl Unpin for ApplicationParams
impl UnwindSafe for ApplicationParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PacketPayloadEncoder for Twhere
T: EncoderValue,
impl<T> PacketPayloadEncoder for Twhere
T: EncoderValue,
Source§fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
E: Encoder,
Returns an estimate of the encoding size of the payload. This
may be inaccurate from what actually is encoded. Estimates should
be less than or equal to what is actually written.
Implementations can return 0 to skip encoding.