pub struct FeedbackTimeline { /* private fields */ }Expand description
The receiver’s clock as successive feedback reports give it, without the wraps.
Both feedback formats time arrivals against a short counter: TWCC’s reference time is 24 bits of 64 ms (it wraps every 12.4 days, and is a signed value, so a receiver may start it anywhere), RFC 8888’s report timestamp is 32 bits of 1/65536 s (it wraps every 18.2 hours). Arrival times are only useful as differences, across reports as much as within one, so the counters have to be followed through their wraps: read raw, the report after a wrap places its arrivals days before the previous report’s.
One per connection, fed every report in the order it is read.
Implementations§
Source§impl FeedbackTimeline
impl FeedbackTimeline
Sourcepub fn convert_twcc(
&mut self,
feedback: &TransportLayerCc,
) -> Vec<Acknowledgement>
pub fn convert_twcc( &mut self, feedback: &TransportLayerCc, ) -> Vec<Acknowledgement>
Convert a TWCC feedback packet, placing its arrivals after those of the reports before it.
Sourcepub fn convert_ccfb(
&mut self,
feedback: &CcFeedbackReport,
) -> (Duration, HashMap<u32, Vec<Acknowledgement>>)
pub fn convert_ccfb( &mut self, feedback: &CcFeedbackReport, ) -> (Duration, HashMap<u32, Vec<Acknowledgement>>)
Convert an RFC 8888 report, placing its arrivals after those of the reports before it.