Struct stress_test_actor::Action
source · pub struct Action<D> {
pub name: &'static str,
pub run: for<'a> fn(_: &'a mut D, _: SmallRng) -> BoxFuture<'a, Result<()>>,
}
Expand description
This structure represents a single action that can be run by an actor. These actions are exposed to the stress test runner over FIDL using the Actor protocol.
Fields§
§name: &'static str
The name of this action, as it will appear to the stress test runner
run: for<'a> fn(_: &'a mut D, _: SmallRng) -> BoxFuture<'a, Result<()>>
The function that will be invoked when this action is asked to execute. This function returns a boxed future that will be awaited on to allow async work to be done.