pub type ShimFn = fn(input: &[u8], output: &mut [u8], resources: &ResourceRegistry) -> Result<DispatchOutcome, DispatchError>;Expand description
Type-erased shim function signature.
Receives a postcard-serialized argument slice, writes a postcard-serialized
result into output, and returns a DispatchOutcome indicating how many
bytes were written and which ResponseStatus the dispatch layer should
emit. The resources parameter provides access to injected #[resource]
values.