Skip to main content

Operation

Trait Operation 

Source
pub trait Operation<T> {
    // Required methods
    fn execute(self) -> Result<T>;
    fn reset(&mut self);
}
Expand description

Base trait for operations

Required Methods§

Source

fn execute(self) -> Result<T>

Execute the operation and produce a result

Source

fn reset(&mut self)

Reset the operation to its initial state

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Operation<Vec<u8>> for ChaCha20Poly1305DecryptOperation<'_>

Available on crate feature alloc only.
Source§

impl Operation<Vec<u8>> for ChaCha20Poly1305EncryptOperation<'_>

Available on crate feature alloc only.