Trait rust_slim::SlimFixture

source ·
pub trait SlimFixture {
    // Required method
    fn execute_method(
        &mut self,
        method: &str,
        args: Vec<String>
    ) -> Result<String, ExecuteMethodError>;
}
Expand description

Fixtures must implement this trait to be able to be executed by the slim server. The #[fixture] macro will automatically implement it for the type in the impl block.

Required Methods§

source

fn execute_method( &mut self, method: &str, args: Vec<String> ) -> Result<String, ExecuteMethodError>

Execute a method if it exists in the current fixture. The methodis the method name that should be executed.

Implementors§