Struct naia_server_socket::PacketReceiver
source · pub struct PacketReceiver { /* private fields */ }Expand description
Used to receive packets from the Server Socket
Implementations§
source§impl PacketReceiver
impl PacketReceiver
sourcepub fn receive(
&mut self
) -> Result<Option<(SocketAddr, &[u8])>, NaiaServerSocketError>
pub fn receive(
&mut self
) -> Result<Option<(SocketAddr, &[u8])>, NaiaServerSocketError>
Receives a packet from the Server Socket
Trait Implementations§
source§impl Clone for PacketReceiver
impl Clone for PacketReceiver
source§fn clone(&self) -> PacketReceiver
fn clone(&self) -> PacketReceiver
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more