Struct s2n_quic_core::inet::ipv4::FlagFragment
source · #[repr(C)]pub struct FlagFragment { /* private fields */ }
Implementations§
source§impl FlagFragment
impl FlagFragment
source§impl FlagFragment
impl FlagFragment
pub fn reserved(&self) -> bool
pub fn set_reserved(&mut self, enabled: bool) -> &mut Self
pub fn dont_fragment(&self) -> bool
pub fn set_dont_fragment(&mut self, enabled: bool) -> &mut Self
pub fn more_fragments(&self) -> bool
pub fn set_more_fragments(&mut self, enabled: bool) -> &mut Self
pub fn fragment_offset(&self) -> u16
pub fn set_fragment_offset(&mut self, offset: u16) -> &mut Self
Trait Implementations§
source§impl AsBytes for FlagFragment
impl AsBytes for FlagFragment
source§impl Clone for FlagFragment
impl Clone for FlagFragment
source§fn clone(&self) -> FlagFragment
fn clone(&self) -> FlagFragment
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 FlagFragment
impl Debug for FlagFragment
source§impl<'a> DecoderValue<'a> for &'a FlagFragmentwhere
FlagFragment: FromBytes,
impl<'a> DecoderValue<'a> for &'a FlagFragmentwhere
FlagFragment: FromBytes,
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'_, Self>
source§impl<'a> DecoderValue<'a> for FlagFragmentwhere
FlagFragment: FromBytes,
impl<'a> DecoderValue<'a> for FlagFragmentwhere
FlagFragment: FromBytes,
fn decode(buffer: DecoderBuffer<'a>) -> DecoderBufferResult<'_, Self>
source§impl<'a> DecoderValueMut<'a> for &'a FlagFragmentwhere
FlagFragment: FromBytes,
impl<'a> DecoderValueMut<'a> for &'a FlagFragmentwhere
FlagFragment: FromBytes,
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
source§impl<'a> DecoderValueMut<'a> for &'a mut FlagFragmentwhere
FlagFragment: FromBytes,
impl<'a> DecoderValueMut<'a> for &'a mut FlagFragmentwhere
FlagFragment: FromBytes,
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'a, Self>
source§impl<'a> DecoderValueMut<'a> for FlagFragmentwhere
FlagFragment: FromBytes,
impl<'a> DecoderValueMut<'a> for FlagFragmentwhere
FlagFragment: FromBytes,
fn decode_mut(buffer: DecoderBufferMut<'a>) -> DecoderBufferMutResult<'_, Self>
source§impl Default for FlagFragment
impl Default for FlagFragment
source§fn default() -> FlagFragment
fn default() -> FlagFragment
Returns the “default value” for a type. Read more
source§impl<'a> EncoderValue for &'a FlagFragmentwhere
FlagFragment: AsBytes,
impl<'a> EncoderValue for &'a FlagFragmentwhere
FlagFragment: AsBytes,
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
Encodes the value into the encoder with a prefix of
Len
fn encode_to_vec(&self) -> Vec<u8>
source§impl<'a> EncoderValue for &'a mut FlagFragmentwhere
FlagFragment: AsBytes,
impl<'a> EncoderValue for &'a mut FlagFragmentwhere
FlagFragment: AsBytes,
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
Encodes the value into the encoder with a prefix of
Len
fn encode_to_vec(&self) -> Vec<u8>
source§impl EncoderValue for FlagFragmentwhere
FlagFragment: AsBytes,
impl EncoderValue for FlagFragmentwhere
FlagFragment: AsBytes,
source§fn encoding_size(&self) -> usize
fn encoding_size(&self) -> usize
Returns the encoding size with no buffer constrains
source§fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
fn encoding_size_for_encoder<E: Encoder>(&self, _encoder: &E) -> usize
Returns the encoding size for the given encoder’s capacity
source§fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
fn encode_mut<E>(&mut self, encoder: &mut E)where
E: Encoder,
Encodes the value into the encoder, while potentially mutating the value itself
source§fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
fn encode_with_len_prefix<Len, E>(&self, encoder: &mut E)
Encodes the value into the encoder with a prefix of
Len
fn encode_to_vec(&self) -> Vec<u8>
source§impl FromBytes for FlagFragment
impl FromBytes for FlagFragment
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§impl FromZeroes for FlagFragmentwhere
U16: FromZeroes,
impl FromZeroes for FlagFragmentwhere
U16: FromZeroes,
source§impl Hash for FlagFragment
impl Hash for FlagFragment
source§impl Ord for FlagFragment
impl Ord for FlagFragment
source§fn cmp(&self, other: &FlagFragment) -> Ordering
fn cmp(&self, other: &FlagFragment) -> 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 FlagFragment
impl PartialEq for FlagFragment
source§fn eq(&self, other: &FlagFragment) -> bool
fn eq(&self, other: &FlagFragment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FlagFragment
impl PartialOrd for FlagFragment
source§fn partial_cmp(&self, other: &FlagFragment) -> Option<Ordering>
fn partial_cmp(&self, other: &FlagFragment) -> 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 FlagFragment
impl Eq for FlagFragment
impl StructuralPartialEq for FlagFragment
impl Unaligned for FlagFragment
Auto Trait Implementations§
impl Freeze for FlagFragment
impl RefUnwindSafe for FlagFragment
impl Send for FlagFragment
impl Sync for FlagFragment
impl Unpin for FlagFragment
impl UnwindSafe for FlagFragment
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> PacketPayloadEncoder for Twhere
T: EncoderValue,
impl<T> PacketPayloadEncoder for Twhere
T: EncoderValue,
source§fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
E: Encoder,
fn encoding_size_hint<E>(&mut self, encoder: &E, minimum_len: usize) -> usizewhere
E: Encoder,
Returns an estimate of the encoding size of the payload. This
may be inaccurate from what actually is encoded. Estimates should
be less than or equal to what is actually written.
Implementations can return 0 to skip encoding.