Skip to main content

answer

Function answer 

Source
async fn answer<T: Serialize + Send + 'static>(
    read: impl FnOnce() -> Result<T, String> + Send + 'static,
) -> Response
Expand description

blocking, answering its result as JSON.