pub struct LongHeader {
pub first_byte: u8,
pub version: u32,
pub dst_cid: ConnectionId,
pub src_cid: ConnectionId,
pub packet_type: LongPacketType,
pub token: Vec<u8>,
pub packet_number: u64,
pub payload_length: u64,
}Expand description
A parsed QUIC long header.
Fields§
§first_byte: u8First byte (form bit, fixed bit, type, reserved, pn_len)
version: u32§dst_cid: ConnectionId§src_cid: ConnectionId§packet_type: LongPacketType§token: Vec<u8>Token (Initial packets only)
packet_number: u64Packet number (decoded)
payload_length: u64Payload length (from Length field, includes packet number bytes)
Trait Implementations§
Source§impl Clone for LongHeader
impl Clone for LongHeader
Source§fn clone(&self) -> LongHeader
fn clone(&self) -> LongHeader
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LongHeader
impl Debug for LongHeader
Source§impl PartialEq for LongHeader
impl PartialEq for LongHeader
impl Eq for LongHeader
impl StructuralPartialEq for LongHeader
Auto Trait Implementations§
impl Freeze for LongHeader
impl RefUnwindSafe for LongHeader
impl Send for LongHeader
impl Sync for LongHeader
impl Unpin for LongHeader
impl UnwindSafe for LongHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)