Trait Runnable

Source
pub trait Runnable {
    // Required method
    fn run(&self);
}
Expand description

Runnable is a common trait for things which can be run without any arguments.

Its primary intended purpose is for use in conjunction with Command.

Required Methods§

Source

fn run(&self)

Run this Runnable

Implementations on Foreign Types§

Source§

impl Runnable for Box<dyn Fn()>

Source§

fn run(&self)

Implementors§