Skip to main content

handler

Function handler 

Source
pub fn handler<I, O, F>(f: F) -> Arc<dyn Handler> ⓘ
where I: DeserializeOwned + 'static, O: Serialize + 'static, F: Fn(&Context, I) -> Result<O, CapabilityError> + Send + Sync + 'static,
Expand description

Wrap a typed function as a handler.