pub struct QuicLongHeader {
pub packet_type: QuicPacketType,
pub version: u32,
pub dst_conn_id: Vec<u8>,
pub src_conn_id: Vec<u8>,
pub header_len: usize,
}Expand description
Parsed QUIC Long Header.
Fields§
§packet_type: QuicPacketTypeThe packet type.
version: u32QUIC version (big-endian u32 from bytes 1-4).
dst_conn_id: Vec<u8>Destination Connection ID bytes.
src_conn_id: Vec<u8>Source Connection ID bytes.
header_len: usizeTotal byte length of the long header (up to and including src_conn_id).
Type-specific fields (token, length, packet number) are NOT included.
Implementations§
Trait Implementations§
Source§impl Clone for QuicLongHeader
impl Clone for QuicLongHeader
Source§fn clone(&self) -> QuicLongHeader
fn clone(&self) -> QuicLongHeader
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 moreAuto Trait Implementations§
impl Freeze for QuicLongHeader
impl RefUnwindSafe for QuicLongHeader
impl Send for QuicLongHeader
impl Sync for QuicLongHeader
impl Unpin for QuicLongHeader
impl UnsafeUnpin for QuicLongHeader
impl UnwindSafe for QuicLongHeader
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