pub trait Encryptor: 'static {
// Required method
fn encrypt(&mut self, data: &mut [u8]) -> Result<Tag, Unspecified>;
}Expand description
Seals each message in place under the next nonce, returning its tag.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".