pub async fn actor_loop<D>(data: D, actions: Vec<Action<D>>) -> Result<()>
Expand description

This is an indefinite loop that is run inside a actor component. Clients use the Actor protocol to run test actions.

This method will serve the Actor protocol over its outgoing directory and wait for exactly one client to connect.

NOTE: This method takes and serves the process’ outgoing directory handle. This handle should not be taken before this method is invoked.

NOTE: The actor library expects exactly one connection to the Actor protocol in this method.