Skip to main content

HostFn

Type Alias HostFn 

Source
pub type HostFn = Box<dyn FnMut(&[u8]) -> Result<Vec<u8>> + Send>;
Expand description

Boxed host function. Takes a payload byte slice (the inner Request.payload), returns response payload bytes.

Aliased Typeยง

pub struct HostFn(/* private fields */);