Skip to main content

dispatch_response

Function dispatch_response 

Source
pub fn dispatch_response<E, F>(
    input: Result<Vec<u8>, HostAbiError>,
    handler: F,
) -> HostAbiResponse
where E: Into<HostAbiError>, F: FnOnce(&[u8]) -> Result<Vec<u8>, E> + UnwindSafe,
Expand description

Converts handler output (or failure) into HostAbiResponse.