pub trait PreExec {
// Required method
fn run(&mut self) -> Result<()>;
}Required Methods§
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 Box<dyn FnMut() -> Result<()> + Send + Sync>
Available on crate feature alloc only.
impl PreExec for Box<dyn FnMut() -> Result<()> + Send + Sync>
Available on crate feature
alloc only.