Trait abi_stable::library::IntoRootModuleResult

source ·
pub trait IntoRootModuleResult {
    type Module: RootModule;

    // Required method
    fn into_root_module_result(self) -> Result<Self::Module, RootModuleError>;
}
Expand description

For converting the return value of a #[export_root_module] function to a Result<_, RootModuleError>.

Required Associated Types§

source

type Module: RootModule

The module that is loaded in the success case.

Required Methods§

source

fn into_root_module_result(self) -> Result<Self::Module, RootModuleError>

Performs the conversion

Implementations on Foreign Types§

source§

impl<M: RootModule> IntoRootModuleResult for Result<M, RBoxError>

Implementors§