Struct crypto_generic::SecureByteVec
source · #[repr(transparent)]pub struct SecureByteVec {
pub(crate) data: Vec<u8>,
}
Expand description
A vec wrapper suitable for storing cryptographic key material. On drop, the memory used will be zeroed.
Fields§
§data: Vec<u8>
Implementations§
Trait Implementations§
source§impl Clone for SecureByteVec
impl Clone for SecureByteVec
source§fn clone(&self) -> SecureByteVec
fn clone(&self) -> SecureByteVec
Returns a copy of the value. Read more
1.0.0 · 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 SecureByteVec
impl Debug for SecureByteVec
source§impl Default for SecureByteVec
impl Default for SecureByteVec
source§fn default() -> SecureByteVec
fn default() -> SecureByteVec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecureByteVec
impl<'de> Deserialize<'de> for SecureByteVec
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SecureByteVec
impl Display for SecureByteVec
source§impl Drop for SecureByteVec
impl Drop for SecureByteVec
source§impl From<&[u8]> for SecureByteVec
impl From<&[u8]> for SecureByteVec
Auto Trait Implementations§
impl Freeze for SecureByteVec
impl RefUnwindSafe for SecureByteVec
impl Send for SecureByteVec
impl Sync for SecureByteVec
impl Unpin for SecureByteVec
impl UnwindSafe for SecureByteVec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)