Skip to main content

Executable

Trait Executable 

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

Encapsulates a block of execution which may be run zero-or-more times.

Required Methods§

Source

fn execute(&self)

Run the unit of execution.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§