pub trait Operation<T> { // Required methods fn execute(self) -> Result<T>; fn reset(&mut self); }
Base trait for operations
Execute the operation and produce a result
Reset the operation to its initial state