pub struct ProtectedInitialHeader {
pub dst_cid: ConnectionId,
pub src_cid: ConnectionId,
pub token_pos: Range<usize>,
pub len: u64,
pub version: u32,
}
Expand description
Header of an Initial packet, before decryption
Fields§
§dst_cid: ConnectionId
Destination Connection ID
src_cid: ConnectionId
Source Connection ID
token_pos: Range<usize>
The position of a token in the packet buffer
len: u64
Length of the packet payload
version: u32
QUIC version
Trait Implementations§
Source§impl Clone for ProtectedInitialHeader
impl Clone for ProtectedInitialHeader
Source§fn clone(&self) -> ProtectedInitialHeader
fn clone(&self) -> ProtectedInitialHeader
Returns a copy 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 ProtectedInitialHeader
impl RefUnwindSafe for ProtectedInitialHeader
impl Send for ProtectedInitialHeader
impl Sync for ProtectedInitialHeader
impl Unpin for ProtectedInitialHeader
impl UnwindSafe for ProtectedInitialHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)