pub fn stream_reset_send(
        &mut self,
        conn: &mut Connection,
        stream_id: StreamId,
        error: AppError,
    ) -> Res<()> {
        qinfo!(
            [self],
            "Reset sending side of stream {} error={}.",
            stream_id,
            error
        );

        if self.send_stream_is_critical(stream_id) {
            return Err(Error::InvalidStreamId);
        }

        self.close_send(stream_id, CloseType::ResetApp(error), conn);
        conn.stream_reset_send(stream_id, error)?;
        Ok(())
    }
/// This is called when an application resets a stream.
/// The application reset will close both sides.
This is called when an application resets a stream.
The application reset will close both sides.
This is called when an application resets a stream . The application reset will close both sides .
pub fn stream_reset_send(
        &mut self,
        conn: &mut Connection,
        stream_id: StreamId,
        error: AppError,
    ) -> Res<()> {
        qinfo!(
            [self],
            "Reset sending side of stream {} error={}.",
            stream_id,
            error
        );
        if self.send_stream_is_critical(stream_id) {
            return Err(Error::InvalidStreamId);
        }
        self.close_send(stream_id, CloseType::ResetApp(error), conn);
        conn.stream_reset_send(stream_id, error)?;
        Ok(())
    }
pub fn stream_reset_send ( & mut self , conn : & mut Connection , stream_id : StreamId , error : AppError , ) -> Res < ( ) > { qinfo ! ( [ self ] " " stream_id error ) ; if self . send_stream_is_critical ( stream_id ) { return Err ( Error :: InvalidStreamId ) ; } self . close_send ( stream_id , CloseType :: ResetApp ( error ) , conn ) ; conn . stream_reset_send ( stream_id , error ) ? ; Ok ( ( ) ) }
This is called when an application resets a stream.
This is called when an application resets a stream .
&mut self
conn
&mut Connection
stream_id
StreamId
error
AppError