Struct crypto_generic::CryptKey
source · #[repr(transparent)]pub struct CryptKey {
pub(crate) key_bytes: SecureByteVec,
}
Expand description
Stores a cryptographic key, but permits no access to the underlying data outside of this crate.
Note: there may be multiple copies of this trait because we want to restrict the internals to access only within this crate.
Fields§
§key_bytes: SecureByteVec
Trait Implementations§
source§impl<'de> Deserialize<'de> for CryptKey
impl<'de> Deserialize<'de> for CryptKey
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
Auto Trait Implementations§
impl RefUnwindSafe for CryptKey
impl Send for CryptKey
impl Sync for CryptKey
impl Unpin for CryptKey
impl UnwindSafe for CryptKey
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