Enum s2n_quic_core::packet::number::PacketNumberSpace
source · #[repr(u8)]pub enum PacketNumberSpace {
Initial = 1,
Handshake = 2,
ApplicationData = 3,
}
Expand description
Contains all of the available packet spaces for QUIC packets
Variants§
Implementations§
source§impl PacketNumberSpace
impl PacketNumberSpace
sourcepub fn is_initial(self) -> bool
pub fn is_initial(self) -> bool
Returns true
if the PacketNumberSpace
is set to Initial
sourcepub fn is_handshake(self) -> bool
pub fn is_handshake(self) -> bool
Returns true
if the PacketNumberSpace
is set to Handshake
sourcepub fn is_application_data(self) -> bool
pub fn is_application_data(self) -> bool
Returns true
if the PacketNumberSpace
is set to ApplicationData
sourcepub const fn new_packet_number(self, value: VarInt) -> PacketNumber
pub const fn new_packet_number(self, value: VarInt) -> PacketNumber
Create a new PacketNumber
for the given PacketNumberSpace
sourcepub fn new_packet_number_len(self, tag: u8) -> PacketNumberLen
pub fn new_packet_number_len(self, tag: u8) -> PacketNumberLen
Create a new PacketNumberLen
for the given PacketNumberSpace
with a packet tag
Trait Implementations§
source§impl Clone for PacketNumberSpace
impl Clone for PacketNumberSpace
source§fn clone(&self) -> PacketNumberSpace
fn clone(&self) -> PacketNumberSpace
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 moresource§impl Debug for PacketNumberSpace
impl Debug for PacketNumberSpace
source§impl Default for PacketNumberSpace
impl Default for PacketNumberSpace
source§fn default() -> PacketNumberSpace
fn default() -> PacketNumberSpace
Returns the “default value” for a type. Read more
source§impl Hash for PacketNumberSpace
impl Hash for PacketNumberSpace
source§impl Ord for PacketNumberSpace
impl Ord for PacketNumberSpace
source§fn cmp(&self, other: &PacketNumberSpace) -> Ordering
fn cmp(&self, other: &PacketNumberSpace) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PacketNumberSpace
impl PartialEq for PacketNumberSpace
source§fn eq(&self, other: &PacketNumberSpace) -> bool
fn eq(&self, other: &PacketNumberSpace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PacketNumberSpace
impl PartialOrd for PacketNumberSpace
source§fn partial_cmp(&self, other: &PacketNumberSpace) -> Option<Ordering>
fn partial_cmp(&self, other: &PacketNumberSpace) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PacketNumberSpace
impl Eq for PacketNumberSpace
impl StructuralPartialEq for PacketNumberSpace
Auto Trait Implementations§
impl Freeze for PacketNumberSpace
impl RefUnwindSafe for PacketNumberSpace
impl Send for PacketNumberSpace
impl Sync for PacketNumberSpace
impl Unpin for PacketNumberSpace
impl UnwindSafe for PacketNumberSpace
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