Trait AutotuneOperation

Source
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§

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.

Trait Implementations§

Source§

impl<Out: Send + 'static> Clone for Box<dyn AutotuneOperation<Out>>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§