pub trait Key:
'static
+ Sized
+ Send
+ Sync
+ Clone {
// Required methods
fn encrypt(&self, data: &[u8]) -> Vec<u8> ⓘ;
fn decrypt(&self, data: &[u8]) -> Result<Vec<u8>>;
}Required Methods§
fn encrypt(&self, data: &[u8]) -> Vec<u8> ⓘ
fn decrypt(&self, data: &[u8]) -> Result<Vec<u8>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.