Skip to main content

IdentifyKey

Trait IdentifyKey 

Source
pub trait IdentifyKey<Key: KeySlotId> {
    // Required method
    fn key_identifier(&self) -> Key;
}
Expand description

Types implementing IdentifyKey are capable of knowing which cryptographic key is needed to encrypt/decrypt them.

Required Methods§

Source

fn key_identifier(&self) -> Key

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§