pub struct AckRange {
pub start: u64,
pub end: u64,
}Expand description
A single ACK range with inclusive start and end packet numbers.
Serializes as a 1-element JSON array [n] when start == end, and as a
2-element JSON array [start, end] otherwise. Both forms are accepted
during deserialization.
Note, the draft-ietf-quic-qlog-quic-events-12 specifies that the
range is a closed interval, i.e., range.end is part of the range.
Fields§
§start: u64The first packet number in the range (inclusive).
end: u64The last packet number in the range (inclusive).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AckRange
impl<'de> Deserialize<'de> for AckRange
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for AckRange
impl StructuralPartialEq for AckRange
Auto Trait Implementations§
impl Freeze for AckRange
impl RefUnwindSafe for AckRange
impl Send for AckRange
impl Sync for AckRange
impl Unpin for AckRange
impl UnsafeUnpin for AckRange
impl UnwindSafe for AckRange
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