Struct naia_shared::AckManager
source · [−]pub struct AckManager { /* private fields */ }Expand description
Keeps track of sent & received packets, and contains ack information that is copied into the standard header on each outgoing packet
Implementations
Get the index of the next outgoing packet
pub fn process_incoming<P: ProtocolType>(
&mut self,
header: &StandardHeader,
message_manager: &mut MessageManager<P>,
packet_notifiable: &mut Option<&mut dyn PacketNotifiable>
)
pub fn process_incoming<P: ProtocolType>(
&mut self,
header: &StandardHeader,
message_manager: &mut MessageManager<P>,
packet_notifiable: &mut Option<&mut dyn PacketNotifiable>
)
Process an incoming packet, handle notifications of delivered / dropped packets
Records the packet with the given packet index
Bumps the local packet index