Trait AutotuneOperation

Source
pub trait AutotuneOperation<Output = ()>: Send + Debug
where Output: Send + 'static,
{ // Required methods fn execute(self: Box<Self>) -> Result<Output, AutotuneError>; fn clone(&self) -> Box<dyn AutotuneOperation<Output>>; // Provided method fn name(&self) -> &str { ... } }
Expand description

Contains operation to run and inputs on which to run it

Required Methods§

Source

fn execute(self: Box<Self>) -> Result<Output, AutotuneError>

Runs the operation

Source

fn clone(&self) -> Box<dyn AutotuneOperation<Output>>

Clones the operation and inputs

Provided Methods§

Source

fn name(&self) -> &str

The name of the operation.

Implementors§