pub fn send_response_with_priority<T: NameValue>(
        &mut self, conn: &mut super::Connection, stream_id: u64, headers: &[T],
        priority: &Priority, fin: bool,
    ) -> Result<()> {
        if !self.streams.contains_key(&stream_id) {
            return Err(Error::FrameUnexpected);
        }

        // Clamp and shift urgency into quiche-priority space
        let urgency = priority
            .urgency
            .clamp(PRIORITY_URGENCY_LOWER_BOUND, PRIORITY_URGENCY_UPPER_BOUND) +
            PRIORITY_URGENCY_OFFSET;

        conn.stream_priority(stream_id, urgency, priority.incremental)?;

        self.send_headers(conn, stream_id, headers, fin)?;

        Ok(())
    }
/// Sends an HTTP/3 response on the specified stream with specified
/// priority.
///
/// The `priority` parameter represents [Extensible Priority]
/// parameters. If the urgency is outside the range 0-7, it will be clamped
/// to 7.
///
/// The [`StreamBlocked`] error is returned when the underlying QUIC stream
/// doesn't have enough capacity for the operation to complete. When this
/// happens the application should retry the operation once the stream is
/// reported as writable again.
///
/// [`StreamBlocked`]: enum.Error.html#variant.StreamBlocked
/// [Extensible Priority]: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-priority-12#section-4.
Sends an HTTP/3 response on the specified stream with specified
priority.

The `priority` parameter represents [Extensible Priority]
parameters. If the urgency is outside the range 0-7, it will be clamped
to 7.

The [`StreamBlocked`] error is returned when the underlying QUIC stream
doesn't have enough capacity for the operation to complete. When this
happens the application should retry the operation once the stream is
reported as writable again.


Sends an HTTP / 3 response on the specified stream with specified priority . The ` priority ` parameter represents [ Extensible Priority ] parameters . If the urgency is outside the range 0 - 7 it will be clamped to 7 . The [ ` StreamBlocked ` ] error is returned when the underlying QUIC stream doesn ' t have enough capacity for the operation to complete . When this happens the application should retry the operation once the stream is reported as writable again .
pub fn send_response_with_priority<T: NameValue>(
        &mut self, conn: &mut super::Connection, stream_id: u64, headers: &[T],
        priority: &Priority, fin: bool,
    ) -> Result<()> {
        if !self.streams.contains_key(&stream_id) {
            return Err(Error::FrameUnexpected);
        }
        // Clamp and shift urgency into quiche-priority space
        let urgency = priority
            .urgency
            .clamp(PRIORITY_URGENCY_LOWER_BOUND, PRIORITY_URGENCY_UPPER_BOUND) +
            PRIORITY_URGENCY_OFFSET;
        conn.stream_priority(stream_id, urgency, priority.incremental)?;
        self.send_headers(conn, stream_id, headers, fin)?;
        Ok(())
    }
pub fn send_response_with_priority < T : NameValue > ( & mut self , conn : & mut super :: Connection , stream_id : u64 , headers : & [ T ] , priority : & Priority , fin : bool , ) -> Result < ( ) > { if ! self . streams . contains_key ( & stream_id ) { return Err ( Error :: FrameUnexpected ) ; } // Clamp and shift urgency into quiche-priority space let urgency = priority . urgency . clamp ( PRIORITY_URGENCY_LOWER_BOUND , PRIORITY_URGENCY_UPPER_BOUND ) + PRIORITY_URGENCY_OFFSET ; conn . stream_priority ( stream_id , urgency , priority . incremental ) ? ; self . send_headers ( conn , stream_id , headers , fin ) ? ; Ok ( ( ) ) }
Sends an HTTP/3 response on the specified stream with specified
priority.
Sends an HTTP / 3 response on the specified stream with specified priority .
&mut self
conn
&mut super::Connection
stream_id
u64
headers
&[T]
priority
&Priority
fin
bool
&mut self
conn
&mut super::Connection
stream_id
u64
headers
&[T]
priority
&Priority
fin
bool