Skip to main content

RequestHandler

Type Alias RequestHandler 

Source
pub type RequestHandler = Arc<dyn Fn(String, Value) -> Pin<Box<dyn Future<Output = Result<Value, ResponseError>> + Send>> + Send + Sync>;
Expand description

The answer to cliStatus. How to answer requests coming from the peer (Runtime): a module subprocess uses it to serve calls forwarded from modules/<name>/<method>.

Aliased Typeยง

pub struct RequestHandler { /* private fields */ }