Skip to main content

Runner

Trait Runner 

Source
pub trait Runner
where Self: Sized,
{ type Output; // Required method fn run(self) -> Self::Output; }
Expand description

A trait for objects that can be executed.

Required Associated Types§

Source

type Output

The type of output produced by the execution.

Required Methods§

Source

fn run(self) -> Self::Output

Executes the object and returns the output.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§