pub struct PacketSecurityScratch { /* private fields */ }Expand description
Caller-owned reusable payload and tag storage for packet sealing.
Implementations§
Source§impl PacketSecurityScratch
impl PacketSecurityScratch
Sourcepub fn with_capacity(payload_bytes: usize, tag_bytes: usize) -> Self
pub fn with_capacity(payload_bytes: usize, tag_bytes: usize) -> Self
Creates sealing storage with explicit payload and tag capacities.
Sourcepub fn retained_payload_capacity(&self) -> usize
pub fn retained_payload_capacity(&self) -> usize
Encrypted-payload bytes retained without growing the scratch buffer.
Sourcepub fn retained_tag_capacity(&self) -> usize
pub fn retained_tag_capacity(&self) -> usize
Authentication-tag bytes retained without growing the scratch buffer.
Trait Implementations§
Source§impl Clone for PacketSecurityScratch
impl Clone for PacketSecurityScratch
Source§fn clone(&self) -> PacketSecurityScratch
fn clone(&self) -> PacketSecurityScratch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PacketSecurityScratch
impl Debug for PacketSecurityScratch
Source§impl Default for PacketSecurityScratch
impl Default for PacketSecurityScratch
Source§fn default() -> PacketSecurityScratch
fn default() -> PacketSecurityScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PacketSecurityScratch
impl RefUnwindSafe for PacketSecurityScratch
impl Send for PacketSecurityScratch
impl Sync for PacketSecurityScratch
impl Unpin for PacketSecurityScratch
impl UnsafeUnpin for PacketSecurityScratch
impl UnwindSafe for PacketSecurityScratch
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