Skip to main content

RouterFn

Type Alias RouterFn 

Source
pub type RouterFn<S> = Arc<dyn Fn(&S) -> String + Send + Sync>;
Expand description

A routing function that inspects state and returns a target node name.

Aliased Typeยง

pub struct RouterFn<S> { /* private fields */ }