Skip to main content

ReplyFn

Type Alias ReplyFn 

Source
pub type ReplyFn = Arc<dyn Fn(&OwnedTerm) -> OwnedTerm + Send + Sync + 'static>;
Expand description

A pure transform from a request term graph to a reply term graph.

Send + Sync + 'static so it can be captured by the restart-capable native spawn factory (Decision: the dynamic actor is restart-capable like any other).

Aliased Typeยง

pub struct ReplyFn { /* private fields */ }