pub trait ObserversTuple<I, S>: MatchName {
// Required methods
fn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>;
fn post_exec_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind,
) -> Result<(), Error>;
fn pre_exec_child_all(
&mut self,
state: &mut S,
input: &I,
) -> Result<(), Error>;
fn post_exec_child_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind,
) -> Result<(), Error>;
}
Expand description
A haskell-style tuple of observers
Required Methods§
Sourcefn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>
fn pre_exec_all(&mut self, state: &mut S, input: &I) -> Result<(), Error>
This is called right before the next execution.
Sourcefn post_exec_all(
&mut self,
state: &mut S,
input: &I,
exit_kind: &ExitKind,
) -> Result<(), Error>
fn post_exec_all( &mut self, state: &mut S, input: &I, exit_kind: &ExitKind, ) -> Result<(), Error>
This is called right after the last execution
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.