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§