Struct gaffer_udp::connection::AckRecord
[−]
[src]
pub struct AckRecord { /* fields omitted */ }
Packets waiting for an ack
Holds up to 32 packets waiting for ack
Additionally, holds packets "forward" of the current ack packet
Methods
impl AckRecord
[src]
fn new() -> AckRecord
fn is_empty(&mut self) -> bool
fn len(&mut self) -> usize
fn enqueue(&mut self, seq: u16, packet: GafferPacket)
Adds a packet to the waiting packets
fn ack(&mut self, seq: u16, seq_field: u32) -> Vec<(u16, GafferPacket)>
Finds and removes acked packets, returning dropped packets