pub struct Datagram {
pub quarter_stream_id: u64,
pub context_id: u64,
pub payload: Bytes,
}Expand description
A decoded HTTP/3 datagram.
Fields§
§quarter_stream_id: u64Request stream id divided by four (RFC 9297 §2.1).
context_id: u64Payload interpretation; 0 is a raw UDP payload.
payload: BytesEverything after the two varints.
Trait Implementations§
impl Eq for Datagram
impl StructuralPartialEq for Datagram
Auto Trait Implementations§
impl !Freeze for Datagram
impl RefUnwindSafe for Datagram
impl Send for Datagram
impl Sync for Datagram
impl Unpin for Datagram
impl UnsafeUnpin for Datagram
impl UnwindSafe for Datagram
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more