pub trait Before<C, R, E> {
// Required method
fn run_before(
&self,
context: &mut C,
resources: &mut R,
) -> Result<(), StageError<E>>;
}Expand description
Runs optional logic after command selection and before command execution.
Required Methods§
Sourcefn run_before(
&self,
context: &mut C,
resources: &mut R,
) -> Result<(), StageError<E>>
fn run_before( &self, context: &mut C, resources: &mut R, ) -> Result<(), StageError<E>>
Runs the before stage.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".