pub fn handle_zero_rtt_rejected(&mut self) -> Res<()> {
        if self.state == Http3State::ZeroRtt {
            self.state = Http3State::Initializing;
            self.control_stream_local = ControlStreamLocal::new();
            self.qpack_encoder = Rc::new(RefCell::new(QPackEncoder::new(
                self.local_params.get_qpack_settings(),
                true,
            )));
            self.qpack_decoder = Rc::new(RefCell::new(QPackDecoder::new(
                self.local_params.get_qpack_settings(),
            )));
            self.settings_state = Http3RemoteSettingsState::NotReceived;
            self.streams_with_pending_data.clear();
            // TODO: investigate whether this code can automatically retry failed transactions.
            self.send_streams.clear();
            self.recv_streams.clear();
            Ok(())
        } else {
            debug_assert!(false, "Zero rtt rejected in the wrong state.");
            Err(Error::HttpInternal(3))
        }
    }
/// This is called when 0RTT has been reseted to clear `send_streams`, `recv_streams` and settings.
This is called when 0RTT has been reseted to clear `send_streams`, `recv_streams` and settings.
This is called when 0RTT has been reseted to clear ` send_streams ` ` recv_streams ` and settings .
pub fn handle_zero_rtt_rejected(&mut self) -> Res<()> {
        if self.state == Http3State::ZeroRtt {
            self.state = Http3State::Initializing;
            self.control_stream_local = ControlStreamLocal::new();
            self.qpack_encoder = Rc::new(RefCell::new(QPackEncoder::new(
                self.local_params.get_qpack_settings(),
                true,
            )));
            self.qpack_decoder = Rc::new(RefCell::new(QPackDecoder::new(
                self.local_params.get_qpack_settings(),
            )));
            self.settings_state = Http3RemoteSettingsState::NotReceived;
            self.streams_with_pending_data.clear();
            // TODO: investigate whether this code can automatically retry failed transactions.
            self.send_streams.clear();
            self.recv_streams.clear();
            Ok(())
        } else {
            debug_assert!(false, "Zero rtt rejected in the wrong state.");
            Err(Error::HttpInternal(3))
        }
    }
pub fn handle_zero_rtt_rejected ( & mut self ) -> Res < ( ) > { if self . state == Http3State :: ZeroRtt { self . state = Http3State :: Initializing ; self . control_stream_local = ControlStreamLocal :: new ( ) ; self . qpack_encoder = Rc :: new ( RefCell :: new ( QPackEncoder :: new ( self . local_params . get_qpack_settings ( ) , true , ) ) ) ; self . qpack_decoder = Rc :: new ( RefCell :: new ( QPackDecoder :: new ( self . local_params . get_qpack_settings ( ) , ) ) ) ; self . settings_state = Http3RemoteSettingsState :: NotReceived ; self . streams_with_pending_data . clear ( ) ; // TODO: investigate whether this code can automatically retry failed transactions. self . send_streams . clear ( ) ; self . recv_streams . clear ( ) ; Ok ( ( ) ) } else { debug_assert ! ( false " " ) ; Err ( Error :: HttpInternal ( 3 ) ) } }
This is called when 0RTT has been reseted to clear `send_streams`, `recv_streams` and settings.
This is called when 0RTT has been reseted to clear ` send_streams ` ` recv_streams ` and settings .
&mut self