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

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.