pub enum KeyRef<'a> {
Usage(KeyUsage),
Raw(&'a [u8]),
}Expand description
A reference to a key, without the key.
A provider resolves this to material it holds — bytes in memory, a slot in a secure element, a handle in an HSM.
Variants§
Usage(KeyUsage)
One of the well-known keys of this association.
Raw(&'a [u8])
Raw bytes supplied by the caller, for one operation.
Trait Implementations§
impl<'a> Copy for KeyRef<'a>
impl<'a> Eq for KeyRef<'a>
impl<'a> StructuralPartialEq for KeyRef<'a>
Auto Trait Implementations§
impl<'a> Forget for KeyRef<'a>
impl<'a> Freeze for KeyRef<'a>
impl<'a> Move for KeyRef<'a>
impl<'a> RefUnwindSafe for KeyRef<'a>
impl<'a> Send for KeyRef<'a>
impl<'a> Sync for KeyRef<'a>
impl<'a> Unpin for KeyRef<'a>
impl<'a> UnsafeUnpin for KeyRef<'a>where
&'a [u8]: UnsafeUnpin,
impl<'a> UnwindSafe for KeyRef<'a>where
&'a [u8]: 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