Struct s2n_quic_core::ack::settings::Settings
source · pub struct Settings {
pub max_ack_delay: Duration,
pub ack_delay_exponent: u8,
pub ack_elicitation_interval: u8,
pub ack_ranges_limit: u8,
}
Expand description
Settings for ACK frames
Fields§
§max_ack_delay: Duration
The maximum ACK delay indicates the maximum amount of time by which the endpoint will delay sending acknowledgments.
ack_delay_exponent: u8
The ACK delay exponent is an integer value indicating an exponent used to decode the ACK Delay field in the ACK frame
ack_elicitation_interval: u8
The number of packets received before sending an ACK-eliciting packet
ack_ranges_limit: u8
The number of packet number intervals an endpoint is willing to store
Implementations§
source§impl Settings
impl Settings
pub const EARLY: Self = _
pub const RECOMMENDED: Self = _
sourcepub fn decode_ack_delay(&self, delay: VarInt) -> Duration
pub fn decode_ack_delay(&self, delay: VarInt) -> Duration
Decodes the peer’s Ack Delay
field
sourcepub fn encode_ack_delay(&self, delay: Duration) -> VarInt
pub fn encode_ack_delay(&self, delay: Duration) -> VarInt
Encodes the local Ack Delay
field
Trait Implementations§
impl Copy for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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