pub struct PnSpace {
pub next_pn: u64,
pub largest_acked: u64,
pub largest_received: u64,
pub sent_packets: BTreeMap<u64, SentPacketInfo>,
pub ack_pending: bool,
}Expand description
Packet number space state.
Fields§
§next_pn: u64Next packet number to send
largest_acked: u64Largest acknowledged packet number
largest_received: u64Largest packet number received from peer
sent_packets: BTreeMap<u64, SentPacketInfo>Sent packets awaiting acknowledgement: pn -> (sent_time_us, ack_eliciting, size)
ack_pending: boolWhether we owe the peer an ACK
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PnSpace
impl RefUnwindSafe for PnSpace
impl Send for PnSpace
impl Sync for PnSpace
impl Unpin for PnSpace
impl UnwindSafe for PnSpace
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)