pub fn send_dgram(
        &mut self, conn: &mut super::Connection, flow_id: u64, buf: &[u8],
    ) -> Result<()> {
        let len = octets::varint_len(flow_id) + buf.len();
        let mut d = vec![0; len as usize];
        let mut b = octets::OctetsMut::with_slice(&mut d);

        b.put_varint(flow_id)?;
        b.put_bytes(buf)?;

        conn.dgram_send_vec(d)?;

        Ok(())
    }
/// Sends an HTTP/3 DATAGRAM with the specified flow ID.
Sends an HTTP/3 DATAGRAM with the specified flow ID.
Sends an HTTP / 3 DATAGRAM with the specified flow ID .
pub fn send_dgram(
        &mut self, conn: &mut super::Connection, flow_id: u64, buf: &[u8],
    ) -> Result<()> {
        let len = octets::varint_len(flow_id) + buf.len();
        let mut d = vec![0; len as usize];
        let mut b = octets::OctetsMut::with_slice(&mut d);
        b.put_varint(flow_id)?;
        b.put_bytes(buf)?;
        conn.dgram_send_vec(d)?;
        Ok(())
    }
pub fn send_dgram ( & mut self , conn : & mut super :: Connection , flow_id : u64 , buf : & [ u8 ] , ) -> Result < ( ) > { let len = octets :: varint_len ( flow_id ) + buf . len ( ) ; let mut d = vec ! [ 0 len as usize ] ; let mut b = octets :: OctetsMut :: with_slice ( & mut d ) ; b . put_varint ( flow_id ) ? ; b . put_bytes ( buf ) ? ; conn . dgram_send_vec ( d ) ? ; Ok ( ( ) ) }
Sends an HTTP/3 DATAGRAM with the specified flow ID.
Sends an HTTP / 3 DATAGRAM with the specified flow ID .
&mut self
conn
&mut super::Connection
flow_id
u64
buf
&[u8]
&mut self
conn
&mut super::Connection
flow_id
u64
buf
&[u8]