pub trait AutotuneOperation<Output: Send + 'static = ()>: Send + Debug {
// 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§
Sourcefn execute(self: Box<Self>) -> Result<Output, AutotuneError>
fn execute(self: Box<Self>) -> Result<Output, AutotuneError>
Runs the operation
Sourcefn clone(&self) -> Box<dyn AutotuneOperation<Output>>
fn clone(&self) -> Box<dyn AutotuneOperation<Output>>
Clones the operation and inputs