Skip to main content

ActorFn

Type Alias ActorFn 

Source
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 */ }