pub struct Key<A: Algorithm, B: KeyBits = DynamicKeyBits> { /* private fields */ }
Expand description
Handle to a symmetric key.
Implementations§
Source§impl<A: Algorithm, B: KeyBits> Key<A, B>
impl<A: Algorithm, B: KeyBits> Key<A, B>
Sourcepub fn into_erased(self) -> SymmetricAlgorithmKey
pub fn into_erased(self) -> SymmetricAlgorithmKey
Discards type-level information and returns a dynamic key handle.
Trait Implementations§
Source§impl<A: Algorithm, B: KeyBits> AsRef<SymmetricAlgorithmKey> for Key<A, B>
impl<A: Algorithm, B: KeyBits> AsRef<SymmetricAlgorithmKey> for Key<A, B>
Source§fn as_ref(&self) -> &SymmetricAlgorithmKey
fn as_ref(&self) -> &SymmetricAlgorithmKey
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<A, B> Freeze for Key<A, B>
impl<A, B> RefUnwindSafe for Key<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Key<A, B>
impl<A, B = DynamicKeyBits> !Sync for Key<A, B>
impl<A, B> Unpin for Key<A, B>
impl<A, B> UnwindSafe for Key<A, B>where
A: UnwindSafe,
B: UnwindSafe,
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