Trait emf_core_base_rs_ffi::module::module_loader::NativeModuleLoaderBinding[][src]

pub trait NativeModuleLoaderBinding: ModuleLoaderBinding {
    unsafe fn get_native_module(
        &self,
        handle: InternalHandle
    ) -> Result<Option<NonNull<NativeModule>>, Error>;
unsafe fn get_native_module_interface(
        &self,
        handle: InternalHandle
    ) -> Result<NonNullConst<NativeModuleInterface>, Error>; }

Helper trait for using a native module loader.

Required methods

unsafe fn get_native_module(
    &self,
    handle: InternalHandle
) -> Result<Option<NonNull<NativeModule>>, Error>
[src]

Fetches the native module handle.

Failure

The function fails if handle is invalid.

Return

Native module handle.

Safety

The function crosses the ffi boundary. Direct usage of a ModuleLoaderBinding may break some invariants of the module api, if not handled with care.

unsafe fn get_native_module_interface(
    &self,
    handle: InternalHandle
) -> Result<NonNullConst<NativeModuleInterface>, Error>
[src]

Fetches the interface of a native module handle.

Failure

The function fails if handle is invalid.

Return

Native module interface.

Safety

The function crosses the ffi boundary. Direct usage of a ModuleLoaderBinding may break some invariants of the module api, if not handled with care.

Loading content...

Implementors

Loading content...