pub fn poll(&mut self, time: Instant) {
        loop {
            match self.naia_socket.receive() {
                Ok(event) => match event {
                    Some(packet) => {
                        // log::info!("process_incoming: {:?}", String::from_utf8_lossy(packet.payload()));
                        self.laminar_vconnection.process_packet(&mut self.laminar_messenger, packet.payload(), time);
                    },
                    None => {
                        break;
                    },
                },
                Err(err) => {
                    log::error!("Error process_incoming for {}", err);
                }
            }
        }
        // TODO should perhaps separate the following call?
        //      maybe poll_recv in preupdate and then vconnection update in post?
        self.laminar_vconnection.update(&mut self.laminar_messenger, time);
    }
/// recv incoming packets from naia, and hand on to laminar
recv incoming packets from naia, and hand on to laminar
recv incoming packets from naia and hand on to laminar
pub fn poll(&mut self, time: Instant) {
        loop {
            match self.naia_socket.receive() {
                Ok(event) => match event {
                    Some(packet) => {
                        // log::info!("process_incoming: {:?}", String::from_utf8_lossy(packet.payload()));
                        self.laminar_vconnection.process_packet(&mut self.laminar_messenger, packet.payload(), time);
                    },
                    None => {
                        break;
                    },
                },
                Err(err) => {
                    log::error!("Error process_incoming for {}", err);
                }
            }
        }
        // TODO should perhaps separate the following call?
        //      maybe poll_recv in preupdate and then vconnection update in post?
        self.laminar_vconnection.update(&mut self.laminar_messenger, time);
    }
pub fn poll ( & mut self , time : Instant ) { loop { match self . naia_socket . receive ( ) { Ok ( event ) => match event { Some ( packet ) => { // log::info!("process_incoming: {:?}", String::from_utf8_lossy(packet.payload())); self . laminar_vconnection . process_packet ( & mut self . laminar_messenger , packet . payload ( ) , time ) ; } , None => { break ; } , } , Err ( err ) => { log :: error ! ( " " err ) ; } } } // TODO should perhaps separate the following call? //      maybe poll_recv in preupdate and then vconnection update in post? self . laminar_vconnection . update ( & mut self . laminar_messenger , time ) ; }
recv incoming packets from naia, and hand on to laminar
recv incoming packets from naia and hand on to laminar
&mut self
time
Instant