Skip to main content

AgentFn

Type Alias AgentFn 

Source
pub type AgentFn = Box<dyn FnOnce(Value) -> Result<Value, Value> + Send>;
Expand description

A Clojure agent action: takes the current state, returns the new state.

Aliased Typeยง

pub struct AgentFn(/* private fields */);