pub type Handler = Rc<dyn Fn(SharedConfium, Value) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>>>>>;Expand description
Type alias for a handler. Handlers are async so they can await slow operations (audit subscription setup, keystore I/O, etc.) without blocking other connections.
The handler is !Send because Confium is !Send (plugin
interfaces hold Rc<dyn Any>). The entire dispatch + connection
loop runs on a single [tokio::task::LocalSet].
Aliased Typeยง
pub struct Handler { /* private fields */ }