Trait GameTestFunction
pub trait GameTestFunction: Send + Sync {
// Required method
fn run(
&self,
host: &mut dyn ServerHost,
context: &GameTestContext,
) -> GameTestResult;
}Expand description
A function run once at the start of each attempt, with the owning server level.
Required Methods§
fn run(
&self,
host: &mut dyn ServerHost,
context: &GameTestContext,
) -> GameTestResult
fn run( &self, host: &mut dyn ServerHost, context: &GameTestContext, ) -> GameTestResult
Return an outcome; the runner owns retries, timeouts and completion.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".