pub fn receive<'b>(&'b mut self) -> Option<PeerPacket<'b, 'a, T>> {
        let mut channel_id = 0u8;

        let res = unsafe { enet_peer_receive(self.inner, &mut channel_id as *mut _) };

        if res.is_null() {
            return None;
        }

        Some(PeerPacket {
            packet: Packet::from_sys_packet(res),
            channel_id,
            _priv_guard: PhantomData,
        })
    }
/// Attempts to dequeue an incoming packet from this `Peer`.
///
/// On success, returns the packet and the channel id of the receiving channel.
Attempts to dequeue an incoming packet from this `Peer`.
On success, returns the packet and the channel id of the receiving channel.
Attempts to dequeue an incoming packet from this ` Peer ` . On success returns the packet and the channel id of the receiving channel .
pub fn receive<'b>(&'b mut self) -> Option<PeerPacket<'b, 'a, T>> {
        let mut channel_id = 0u8;
        let res = unsafe { enet_peer_receive(self.inner, &mut channel_id as *mut _) };
        if res.is_null() {
            return None;
        }
        Some(PeerPacket {
            packet: Packet::from_sys_packet(res),
            channel_id,
            _priv_guard: PhantomData,
        })
    }
pub fn receive < ' b > ( & ' b mut self ) -> Option < PeerPacket < ' b , ' a , T > > { let mut channel_id = 0u8 ; let res = unsafe { enet_peer_receive ( self . inner , & mut channel_id as * mut _ ) } ; if res . is_null ( ) { return None ; } Some ( PeerPacket { packet : Packet :: from_sys_packet ( res ) , channel_id , _priv_guard : PhantomData , } ) }
Attempts to dequeue an incoming packet from this `Peer`.
Attempts to dequeue an incoming packet from this ` Peer ` .
&'b mut self
&'b mut self