pub type ActorFn = Arc<dyn Fn(ActorInput) -> BoxFuture<Result<TurnOutput, ActorFailure>> + Send + Sync>;Expand description
The function behind a FnActor: one input in, a turn’s output out.
Aliased Type§
pub struct ActorFn { /* private fields */ }pub type ActorFn = Arc<dyn Fn(ActorInput) -> BoxFuture<Result<TurnOutput, ActorFailure>> + Send + Sync>;The function behind a FnActor: one input in, a turn’s output out.
pub struct ActorFn { /* private fields */ }