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.
Auto Trait Implementations
impl !RefUnwindSafe for HostImportDescriptor
impl !Send for HostImportDescriptor
impl !Sync for HostImportDescriptor
impl Unpin for HostImportDescriptor
impl !UnwindSafe for HostImportDescriptor
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self