pub struct AEADKey(Key);
Expand description
An abstract AEAD key.
Tuple Fields§
§0: Key
Implementations§
Source§impl AEADKey
impl AEADKey
Sourcepub fn from_bytes(algorithm: AEADAlgorithm, bytes: &[u8]) -> Self
pub fn from_bytes(algorithm: AEADAlgorithm, bytes: &[u8]) -> Self
Attempt deserialization of bytes
into an AEAD key for
algorithm
. Panics on failure.
Auto Trait Implementations§
impl Freeze for AEADKey
impl RefUnwindSafe for AEADKey
impl Send for AEADKey
impl Sync for AEADKey
impl Unpin for AEADKey
impl UnwindSafe for AEADKey
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