Struct win_crypto_ng::symmetric::Key
source · 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> RefUnwindSafe for Key<A, B>where A: RefUnwindSafe, B: RefUnwindSafe,
impl<A, B> Send for Key<A, B>where A: Send, B: Send,
impl<A, B = DynamicKeyBits> !Sync for Key<A, B>
impl<A, B> Unpin for Key<A, B>where A: Unpin, B: Unpin,
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