pub fn from_fn<F, Fut>(f: F) -> impl IrohRequestProcessorExpand description
Convenience: build an IrohRequestProcessor from a Send + Sync
async closure. Useful for tests.
The closure is carrier-agnostic and is therefore restricted to trusted
inproc/UDS carriers. It cannot receive bytes from an untrusted carrier.