Struct s2n_quic_core::crypto::payload::ProtectedPayload
source · pub struct ProtectedPayload<'a> { /* private fields */ }Expand description
Type which restricts access to protected and encrypted payloads.
The ProtectedPayload is an EncryptedPayload that has had
header protection applied. So to get to the cleartext payload,
first you remove header protection, and then you decrypt the packet
Implementations§
source§impl<'a> ProtectedPayload<'a>
impl<'a> ProtectedPayload<'a>
sourcepub fn new(header_len: usize, buffer: &'a mut [u8]) -> Self
pub fn new(header_len: usize, buffer: &'a mut [u8]) -> Self
Creates a new protected payload with a header_len
sourcepub fn get_checked_range(&self, range: &CheckedRange) -> DecoderBuffer<'_>
pub fn get_checked_range(&self, range: &CheckedRange) -> DecoderBuffer<'_>
Reads data from a CheckedRange
Trait Implementations§
source§impl<'a> Debug for ProtectedPayload<'a>
impl<'a> Debug for ProtectedPayload<'a>
source§impl<'a> Hash for ProtectedPayload<'a>
impl<'a> Hash for ProtectedPayload<'a>
source§impl<'a> Ord for ProtectedPayload<'a>
impl<'a> Ord for ProtectedPayload<'a>
source§fn cmp(&self, other: &ProtectedPayload<'a>) -> Ordering
fn cmp(&self, other: &ProtectedPayload<'a>) -> 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<'a> PartialEq for ProtectedPayload<'a>
impl<'a> PartialEq for ProtectedPayload<'a>
source§fn eq(&self, other: &ProtectedPayload<'a>) -> bool
fn eq(&self, other: &ProtectedPayload<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> PartialOrd for ProtectedPayload<'a>
impl<'a> PartialOrd for ProtectedPayload<'a>
source§fn partial_cmp(&self, other: &ProtectedPayload<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectedPayload<'a>) -> 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<'a> Eq for ProtectedPayload<'a>
impl<'a> StructuralEq for ProtectedPayload<'a>
impl<'a> StructuralPartialEq for ProtectedPayload<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ProtectedPayload<'a>
impl<'a> Send for ProtectedPayload<'a>
impl<'a> Sync for ProtectedPayload<'a>
impl<'a> Unpin for ProtectedPayload<'a>
impl<'a> !UnwindSafe for ProtectedPayload<'a>
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