pub struct OneRttHeader { /* private fields */ }Expand description
A packet with a short header does not include a length, so it can only be the last packet in a UDP datagram.
+---spin bit
| +---key phase bits
| |
+----+-----+----+------+--------------+----......---+
|1|1|S 0 0 K 0 0| DCIL | DCID(0..160) | Payload ... |
+-----+---+-+---+------+--------------+----......---+
|<->| |<->|
| |
| +---> packet number length
+---> reserved bits, must be 0See 1-RTT Packet in RFC9000 for more details.
Implementations§
Source§impl OneRttHeader
impl OneRttHeader
Trait Implementations§
Source§impl Clone for OneRttHeader
impl Clone for OneRttHeader
Source§fn clone(&self) -> OneRttHeader
fn clone(&self) -> OneRttHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OneRttHeader
Source§impl Debug for OneRttHeader
impl Debug for OneRttHeader
Source§impl Default for OneRttHeader
impl Default for OneRttHeader
Source§fn default() -> OneRttHeader
fn default() -> OneRttHeader
Returns the “default value” for a type. Read more
Source§impl EncodeHeader for OneRttHeader
impl EncodeHeader for OneRttHeader
impl Eq for OneRttHeader
Source§impl From<OneRttHeader> for Header
impl From<OneRttHeader> for Header
Source§fn from(v: OneRttHeader) -> Header
fn from(v: OneRttHeader) -> Header
Converts to this type from the input type.
Source§impl GetDcid for OneRttHeader
impl GetDcid for OneRttHeader
Source§fn dcid(&self) -> &ConnectionId
fn dcid(&self) -> &ConnectionId
Get the Destination Connection ID (DCID) of the packet.
Source§impl PartialEq for OneRttHeader
impl PartialEq for OneRttHeader
impl StructuralPartialEq for OneRttHeader
Auto Trait Implementations§
impl Freeze for OneRttHeader
impl RefUnwindSafe for OneRttHeader
impl Send for OneRttHeader
impl Sync for OneRttHeader
impl Unpin for OneRttHeader
impl UnsafeUnpin for OneRttHeader
impl UnwindSafe for OneRttHeader
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
Source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Source§impl<T> WriteHeader<OneRttHeader> for Twhere
T: BufMut,
impl<T> WriteHeader<OneRttHeader> for Twhere
T: BufMut,
Source§fn put_header(&mut self, header: &OneRttHeader)
fn put_header(&mut self, header: &OneRttHeader)
Write a packet header to the buffer.