Skip to main content

ShimFn

Type Alias ShimFn 

Source
pub type ShimFn = fn(input: &[u8], output: &mut [u8], resources: &ResourceRegistry) -> Result<usize, DispatchError>;
Expand description

Type-erased shim function signature.

Receives a postcard-serialized argument slice, writes a postcard-serialized result into output, and returns the number of bytes written. The resources parameter provides access to injected #[resource] values.