Skip to main content

Runner

Trait Runner 

Source
pub trait Runner<F, P> {
    type Output;

    // Required method
    fn run_with_param(f: F, param: P) -> Self::Output;

    // Provided method
    fn run(f: F) -> Self::Output
       where P: Default { ... }
}
Expand description

Run some code after some complexe initialization

Required Associated Types§

Required Methods§

Source

fn run_with_param(f: F, param: P) -> Self::Output

Provided Methods§

Source

fn run(f: F) -> Self::Output
where P: Default,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§