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
sourceimpl<'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
sourceimpl<'a> Debug for ProtectedPayload<'a>
impl<'a> Debug for ProtectedPayload<'a>
sourceimpl<'a> Hash for ProtectedPayload<'a>
impl<'a> Hash for ProtectedPayload<'a>
sourceimpl<'a> Ord for ProtectedPayload<'a>
impl<'a> Ord for ProtectedPayload<'a>
sourceimpl<'a> PartialEq<ProtectedPayload<'a>> for ProtectedPayload<'a>
impl<'a> PartialEq<ProtectedPayload<'a>> for ProtectedPayload<'a>
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ProtectedPayload<'a>) -> bool
fn ne(&self, other: &ProtectedPayload<'a>) -> bool
This method tests for !=.
sourceimpl<'a> PartialOrd<ProtectedPayload<'a>> for ProtectedPayload<'a>
impl<'a> PartialOrd<ProtectedPayload<'a>> for ProtectedPayload<'a>
sourcefn partial_cmp(&self, other: &ProtectedPayload<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ProtectedPayload<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more