pub struct ReceiverBounds {
pub max_tracked_window: u32,
pub max_pending_skips: usize,
pub max_outstanding_acks: usize,
}Expand description
The bounds an ARQ Receiver holds a peer to, all chosen by the caller: the crate supplies
none of them.
Fields§
§max_tracked_window: u32The most sequence numbers ahead of the cumulative ack point this receiver will ever track
(a bound on loss_list + out_of_order, which together can never name more sequence
numbers than the window spans). The effective bound is the negotiated Maximum Flow Window
Size (draft-sharabayko-srt-01 §3.2.1: a packet further ahead than the window cannot be
buffered by the peer’s own flow control either), clamped to this value so a hostile or
misconfigured window cannot turn one packet into unbounded work.
max_pending_skips: usizeMost DROPREQ ranges held ahead of the ack point at once.
max_outstanding_acks: usizeHard cap on outstanding Full ACKs awaiting an ACKACK, however long the retention.
Implementations§
Source§impl ReceiverBounds
impl ReceiverBounds
Sourcepub fn for_profile(profile: Profile) -> Self
pub fn for_profile(profile: Profile) -> Self
The Profile preset, replaceable through its with_* setters.
Sourcepub fn with_max_tracked_window(self, value: u32) -> Self
pub fn with_max_tracked_window(self, value: u32) -> Self
Replace Self::max_tracked_window.
Sourcepub fn with_max_pending_skips(self, value: usize) -> Self
pub fn with_max_pending_skips(self, value: usize) -> Self
Replace Self::max_pending_skips.
Sourcepub fn with_max_outstanding_acks(self, value: usize) -> Self
pub fn with_max_outstanding_acks(self, value: usize) -> Self
Replace Self::max_outstanding_acks.