Skip to main content

Run

Trait Run 

Source
pub trait Run<C = ()> {
    type Output;

    // Required method
    fn run(self, context: C) -> Self::Output;
}
Expand description

A command that can be carried out, given C.

Required Associated Types§

Source

type Output

What running the command produces.

Required Methods§

Source

fn run(self, context: C) -> Self::Output

Carry out the command.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§