pub struct InitialHeader<'a> {
pub version: u32,
pub dcid: &'a [u8],
pub scid: &'a [u8],
pub token: &'a [u8],
pub payload: &'a [u8],
pub header_bytes: &'a [u8],
pub first_byte: u8,
}Expand description
Parsed QUIC Initial packet header with zero-copy references into the original packet buffer.
Fields§
§version: u32QUIC version field (e.g. 0x00000001 for v1, 0x6b3343cf for v2).
dcid: &'a [u8]Destination Connection ID bytes.
scid: &'a [u8]Source Connection ID bytes.
token: &'a [u8]Token bytes. An empty slice indicates no token was present.
payload: &'a [u8]Encrypted payload including the protected packet number.
header_bytes: &'a [u8]Raw header bytes from the first byte up to (but not including) the payload. Required when constructing the AEAD additional authenticated data during decryption.
first_byte: u8The first byte of the packet, still under header protection.
Trait Implementations§
Source§impl<'a> Clone for InitialHeader<'a>
impl<'a> Clone for InitialHeader<'a>
Source§fn clone(&self) -> InitialHeader<'a>
fn clone(&self) -> InitialHeader<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InitialHeader<'a>
impl<'a> Debug for InitialHeader<'a>
Source§impl<'a> PartialEq for InitialHeader<'a>
impl<'a> PartialEq for InitialHeader<'a>
impl<'a> StructuralPartialEq for InitialHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for InitialHeader<'a>
impl<'a> RefUnwindSafe for InitialHeader<'a>
impl<'a> Send for InitialHeader<'a>
impl<'a> Sync for InitialHeader<'a>
impl<'a> Unpin for InitialHeader<'a>
impl<'a> UnwindSafe for InitialHeader<'a>
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