pub struct PacketSecurityOpenScratch { /* private fields */ }Expand description
Caller-owned reusable payload storage for packet opening.
Implementations§
Source§impl PacketSecurityOpenScratch
impl PacketSecurityOpenScratch
Sourcepub fn with_capacity(payload_bytes: usize) -> Self
pub fn with_capacity(payload_bytes: usize) -> Self
Creates opening storage with explicit payload capacity.
Sourcepub fn retained_payload_capacity(&self) -> usize
pub fn retained_payload_capacity(&self) -> usize
Opened-payload bytes retained without growing the scratch buffer.
Trait Implementations§
Source§impl Clone for PacketSecurityOpenScratch
impl Clone for PacketSecurityOpenScratch
Source§fn clone(&self) -> PacketSecurityOpenScratch
fn clone(&self) -> PacketSecurityOpenScratch
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 PacketSecurityOpenScratch
impl Debug for PacketSecurityOpenScratch
Source§impl Default for PacketSecurityOpenScratch
impl Default for PacketSecurityOpenScratch
Source§fn default() -> PacketSecurityOpenScratch
fn default() -> PacketSecurityOpenScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PacketSecurityOpenScratch
impl RefUnwindSafe for PacketSecurityOpenScratch
impl Send for PacketSecurityOpenScratch
impl Sync for PacketSecurityOpenScratch
impl Unpin for PacketSecurityOpenScratch
impl UnsafeUnpin for PacketSecurityOpenScratch
impl UnwindSafe for PacketSecurityOpenScratch
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