Struct marine::HostImportDescriptor [−][src]
pub struct HostImportDescriptor {
pub host_exported_func: HostExportedFunc,
pub argument_types: Vec<IType>,
pub output_type: Option<IType>,
pub error_handler: Option<Box<dyn Fn(&HostImportError) -> Option<IValue> + 'static>>,
}
Fields
host_exported_func: HostExportedFunc
This closure will be invoked for corresponding import.
argument_types: Vec<IType>
Type of the closure arguments.
output_type: Option<IType>
Types of output of the closure.
error_handler: Option<Box<dyn Fn(&HostImportError) -> Option<IValue> + 'static>>
If Some, this closure is called with error when errors is encountered while lifting. If None, panic will occur.