pub trait KeyDecryptable<Key: CryptoKey, Output> {
// Required method
fn decrypt_with_key(&self, key: &Key) -> Result<Output, CryptoError>;
}Required Methods§
fn decrypt_with_key(&self, key: &Key) -> Result<Output, CryptoError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".