pub fn close(&mut self, error: AppError) {
        qinfo!([self], "Close connection error {:?}.", error);
        self.state = Http3State::Closing(ConnectionError::Application(error));
        if (!self.send_streams.is_empty() || !self.recv_streams.is_empty()) && (error == 0) {
            qwarn!("close(0) called when streams still active");
        }
        self.send_streams.clear();
        self.recv_streams.clear();
    }
/// This is called when an application closes the connection.
This is called when an application closes the connection.
This is called when an application closes the connection .
pub fn close(&mut self, error: AppError) {
        qinfo!([self], "Close connection error {:?}.", error);
        self.state = Http3State::Closing(ConnectionError::Application(error));
        if (!self.send_streams.is_empty() || !self.recv_streams.is_empty()) && (error == 0) {
            qwarn!("close(0) called when streams still active");
        }
        self.send_streams.clear();
        self.recv_streams.clear();
    }
pub fn close ( & mut self , error : AppError ) { qinfo ! ( [ self ] " " error ) ; self . state = Http3State :: Closing ( ConnectionError :: Application ( error ) ) ; if ( ! self . send_streams . is_empty ( ) || ! self . recv_streams . is_empty ( ) ) && ( error == 0 ) { qwarn ! ( " " ) ; } self . send_streams . clear ( ) ; self . recv_streams . clear ( ) ; }
This is called when an application closes the connection.
This is called when an application closes the connection .
&mut self
error
AppError