Skip to main content

PreExec

Trait PreExec 

Source
pub trait PreExec {
    // Required method
    fn run(&mut self) -> Result<()>;
}

Required Methods§

Source

fn run(&mut self) -> Result<()>

Run this routing pre exec

§Errors

Any errors occuring, it’s up to the implementor to decide

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PreExec for &mut (dyn FnMut() -> Result<()> + Send + Sync)

Source§

fn run(&mut self) -> Result<()>

Source§

impl PreExec for ()

Source§

fn run(&mut self) -> Result<()>

Source§

impl PreExec for Box<dyn FnMut() -> Result<()> + Send + Sync>

Available on crate feature alloc only.
Source§

fn run(&mut self) -> Result<()>

Implementors§