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§
source§impl AckManager
impl AckManager
pub fn new() -> Self
sourcepub fn next_sender_packet_index(&self) -> PacketIndex
pub fn next_sender_packet_index(&self) -> PacketIndex
Get the index of the next outgoing packet
sourcepub fn process_incoming_header<E: Copy + Eq + Hash + Send + Sync>(
&mut self,
header: &StandardHeader,
message_manager: &mut MessageManager,
host_world_manager: &mut HostWorldManager<E>,
local_world_manager: &mut LocalWorldManager<E>,
packet_notifiables: &mut [&mut dyn PacketNotifiable]
)
pub fn process_incoming_header<E: Copy + Eq + Hash + Send + Sync>( &mut self, header: &StandardHeader, message_manager: &mut MessageManager, host_world_manager: &mut HostWorldManager<E>, local_world_manager: &mut LocalWorldManager<E>, packet_notifiables: &mut [&mut dyn PacketNotifiable] )
Process an incoming packet, handle notifications of delivered / dropped packets