pub struct PortableBuffer { /* private fields */ }Expand description
A portable buffer backed by a standard Vec with automatic zeroization on drop.
Implementations§
Trait Implementations§
Source§impl AssertZeroizeOnDrop for PortableBuffer
impl AssertZeroizeOnDrop for PortableBuffer
Source§fn clone_sentinel(&self) -> ZeroizeOnDropSentinel
fn clone_sentinel(&self) -> ZeroizeOnDropSentinel
Clones the internal
ZeroizeOnDropSentinel for verification. Read moreSource§fn assert_zeroize_on_drop(self)
fn assert_zeroize_on_drop(self)
Asserts that zeroization happens when this value is dropped. Read more
Source§impl Buffer for PortableBuffer
impl Buffer for PortableBuffer
Source§fn open(
&mut self,
f: &mut dyn FnMut(&[u8]) -> Result<(), BufferError>,
) -> Result<(), BufferError>
fn open( &mut self, f: &mut dyn FnMut(&[u8]) -> Result<(), BufferError>, ) -> Result<(), BufferError>
Opens the buffer for read-only access, executing the provided closure.
Source§impl Debug for PortableBuffer
impl Debug for PortableBuffer
Source§impl Drop for PortableBuffer
impl Drop for PortableBuffer
Source§impl FastZeroizable for PortableBuffer
impl FastZeroizable for PortableBuffer
Source§fn fast_zeroize(&mut self)
fn fast_zeroize(&mut self)
Zeroizes the value in place. Read more
Source§impl ZeroizationProbe for PortableBuffer
impl ZeroizationProbe for PortableBuffer
Source§fn is_zeroized(&self) -> bool
fn is_zeroized(&self) -> bool
Returns
true if the value is zeroized (all bytes are 0). Read moreSource§impl ZeroizeMetadata for PortableBuffer
impl ZeroizeMetadata for PortableBuffer
Source§const CAN_BE_BULK_ZEROIZED: bool = false
const CAN_BE_BULK_ZEROIZED: bool = false
Whether this type can be bulk-zeroized with memset. Read more
impl Send for PortableBuffer
impl Sync for PortableBuffer
Auto Trait Implementations§
impl Freeze for PortableBuffer
impl RefUnwindSafe for PortableBuffer
impl Unpin for PortableBuffer
impl UnwindSafe for PortableBuffer
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