Skip to main content

encode_datagram

Function encode_datagram 

Source
pub fn encode_datagram(context_id: u64, payload: &[u8]) -> Bytes
Expand description

Encodes a DATAGRAM capsule (RFC 9297 §3.5).

Used only when the peer has not enabled QUIC datagrams; see tunnel::udp::Session::forward_to_client.