Skip to main content

HandlerFn

Type Alias HandlerFn 

Source
pub type HandlerFn = Arc<dyn Fn(Value) -> BoxFuture<'static, Result<Value, String>> + Send + Sync>;
Expand description

Server-side handler signature. One closure per JSON-RPC method; returns the result Value or an error string.

Aliased Typeยง

pub struct HandlerFn { /* private fields */ }