pub struct RetiredSegment {
pub sent_at: Option<Instant>,
pub size: u64,
pub was_retransmit: bool,
}Expand description
One reliable segment retired by Stream::on_sack — a segment whose
sequence a received SACK covered and which has now been removed from the
send buffer.
Fields§
§sent_at: Option<Instant>When the segment was last (re)transmitted, if it had been sent at all.
None means the segment was acknowledged before poll_send ever stamped
it (e.g. a duplicate cumulative SACK) — no RTT sample is taken.
size: u64On-wire payload size of the segment.
was_retransmit: boolTrue if the segment had been retransmitted at least once (retries > 0).
Per Karn’s algorithm, the caller must NOT sample RTT from such a segment.
Trait Implementations§
Source§impl Clone for RetiredSegment
impl Clone for RetiredSegment
Source§fn clone(&self) -> RetiredSegment
fn clone(&self) -> RetiredSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RetiredSegment
Auto Trait Implementations§
impl Freeze for RetiredSegment
impl RefUnwindSafe for RetiredSegment
impl Send for RetiredSegment
impl Sync for RetiredSegment
impl Unpin for RetiredSegment
impl UnsafeUnpin for RetiredSegment
impl UnwindSafe for RetiredSegment
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