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 Debug for ProtectedPayload<'_>
impl Debug for ProtectedPayload<'_>
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§impl<'a> PartialOrd for ProtectedPayload<'a>
impl<'a> PartialOrd for ProtectedPayload<'a>
impl<'a> Eq for ProtectedPayload<'a>
impl<'a> StructuralPartialEq for ProtectedPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProtectedPayload<'a>
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