pub fn ack(&mut self, range: Range<u64>) {
        self.acks.insert(range);
        while self.acks.min() == Some(self.offset - self.unacked.len() as u64) {
            let prefix = self.acks.pop_min().unwrap();
            self.unacked.advance((prefix.end - prefix.start) as usize);
        }
    }
/// Discard a range of acknowledged stream data
///
/// Each offset must be acknowledged at most once.
Discard a range of acknowledged stream data
Each offset must be acknowledged at most once.
Discard a range of acknowledged stream data Each offset must be acknowledged at most once .
pub fn ack(&mut self, range: Range<u64>) {
        self.acks.insert(range);
        while self.acks.min() == Some(self.offset - self.unacked.len() as u64) {
            let prefix = self.acks.pop_min().unwrap();
            self.unacked.advance((prefix.end - prefix.start) as usize);
        }
    }
pub fn ack ( & mut self , range : Range < u64 > ) { self . acks . insert ( range ) ; while self . acks . min ( ) == Some ( self . offset - self . unacked . len ( ) as u64 ) { let prefix = self . acks . pop_min ( ) . unwrap ( ) ; self . unacked . advance ( ( prefix . end - prefix . start ) as usize ) ; } }
Discard a range of acknowledged stream data
Each offset must be acknowledged at most once.
Discard a range of acknowledged stream data Each offset must be acknowledged at most once .
&mut self
range
Range<u64>