pub fn received_packet(&self, packet: &mut [u8]) -> Result<(), Error> {
        let mut q = self.quic.borrow_mut();
        match q.connection.recv(packet) {
            Ok(_) => (),
            Err(quiche::Error::Done) => (),
            Err(x) => return Err(x.into()),
        }
        q.update_timeout();
        q.wakeup();
        Ok(())
    }
/// Report a packet was received.
/// An error processing a packet does not indicate that the link should be closed.
Report a packet was received.
An error processing a packet does not indicate that the link should be closed.
Report a packet was received . An error processing a packet does not indicate that the link should be closed .
pub fn received_packet(&self, packet: &mut [u8]) -> Result<(), Error> {
        let mut q = self.quic.borrow_mut();
        match q.connection.recv(packet) {
            Ok(_) => (),
            Err(quiche::Error::Done) => (),
            Err(x) => return Err(x.into()),
        }
        q.update_timeout();
        q.wakeup();
        Ok(())
    }
pub fn received_packet ( & self , packet : & mut [ u8 ] ) -> Result < ( ) , Error > { let mut q = self . quic . borrow_mut ( ) ; match q . connection . recv ( packet ) { Ok ( _ ) => ( ) , Err ( quiche :: Error :: Done ) => ( ) , Err ( x ) => return Err ( x . into ( ) ) , } q . update_timeout ( ) ; q . wakeup ( ) ; Ok ( ( ) ) }
Report a packet was received.
Report a packet was received .
&self
packet
&mut [u8]
&self
packet
&mut [u8]