Struct emf_core_base_rs::module::module_loader::NativeLoaderInternal [−][src]
pub struct NativeLoaderInternal<'loader> { /* fields omitted */ }
Native library loader internal interface.
Implementations
impl<'a> NativeLoaderInternal<'a>
[src]
impl<'a> NativeLoaderInternal<'a>
[src]pub unsafe fn get_native_module<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<NativeModuleInstance<'module, O>, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<NativeModuleInstance<'module, O>, Error> where
O: ImmutableAccessIdentifier,
Fetches the native module handle.
Failure
The function fails if module
is invalid.
Return
Native module handle.
Safety
The function crosses the ffi boundary. Direct usage of a NativeLoaderInternal may break some invariants of the module api, if not handled with care.
pub unsafe fn get_native_module_interface<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<NativeModule<'module, O>, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<NativeModule<'module, O>, Error> where
O: ImmutableAccessIdentifier,
Fetches the native module interface.
Failure
The function fails if module
is invalid.
Return
Native module interface.
Safety
The function crosses the ffi boundary. Direct usage of a NativeLoaderInternal may break some invariants of the module api, if not handled with care.
Methods from Deref<Target = NonNullConst<NativeModuleLoaderInterface>>
pub unsafe fn into_mut(&self) -> NonNull<T>
[src]
Acquires a mutable version of the pointer.
Safety
It is undefined behavior if the underlying pointer is not already mutable.
pub unsafe fn as_ref(&self) -> &T
[src]
Trait Implementations
impl<'loader> Clone for NativeLoaderInternal<'loader>
[src]
impl<'loader> Clone for NativeLoaderInternal<'loader>
[src]fn clone(&self) -> NativeLoaderInternal<'loader>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'loader> Copy for NativeLoaderInternal<'loader>
[src]
impl<'loader> Copy for NativeLoaderInternal<'loader>
[src]impl<'loader> Debug for NativeLoaderInternal<'loader>
[src]
impl<'loader> Debug for NativeLoaderInternal<'loader>
[src]impl Deref for NativeLoaderInternal<'_>
[src]
impl Deref for NativeLoaderInternal<'_>
[src]type Target = NonNullConst<NativeModuleLoaderInterface>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'loader> Eq for NativeLoaderInternal<'loader>
[src]
impl<'loader> Eq for NativeLoaderInternal<'loader>
[src]impl<'a> ModuleLoaderAPI<'a> for NativeLoaderInternal<'a>
[src]
impl<'a> ModuleLoaderAPI<'a> for NativeLoaderInternal<'a>
[src]type InternalLoader = Self
Type of the internal loader.
fn to_interface(&self) -> NonNullConst<ModuleLoaderInterface>
[src]
unsafe fn from_interface(interface: NonNullConst<ModuleLoaderInterface>) -> Self
[src]
unsafe fn from_void_ptr(interface: NonNullConst<c_void>) -> Self
[src]
unsafe fn add_module(
&mut self,
path: &impl AsRef<Path>
) -> Result<InternalModule<Owned>, Error>
[src]
&mut self,
path: &impl AsRef<Path>
) -> Result<InternalModule<Owned>, Error>
unsafe fn remove_module(
&mut self,
module: InternalModule<Owned>
) -> Result<(), Error>
[src]
&mut self,
module: InternalModule<Owned>
) -> Result<(), Error>
unsafe fn load<O>(
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
[src]
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
unsafe fn unload<O>(
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
[src]
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
unsafe fn initialize<O>(
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
[src]
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
unsafe fn terminate<O>(
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
[src]
&mut self,
module: &mut InternalModule<O>
) -> Result<(), Error> where
O: MutableAccessIdentifier,
unsafe fn fetch_status<O>(
&self,
module: &InternalModule<O>
) -> Result<ModuleStatus, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &InternalModule<O>
) -> Result<ModuleStatus, Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_interface<'module, O, T>(
&self,
module: &'module InternalModule<O>,
interface: &InterfaceDescriptor,
caster: impl FnOnce(Interface) -> T
) -> Result<Interface<'module, T>, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>,
interface: &InterfaceDescriptor,
caster: impl FnOnce(Interface) -> T
) -> Result<Interface<'module, T>, Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_module_info<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<&'module ModuleInfo, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<&'module ModuleInfo, Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_module_path<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<&'module [OSPathChar], Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<&'module [OSPathChar], Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_load_dependencies<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_runtime_dependencies<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_exportable_interfaces<'module, O>(
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
module: &'module InternalModule<O>
) -> Result<&'module [InterfaceDescriptor], Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_internal_interface(&self) -> Self::InternalLoader
[src]
impl<'loader> Ord for NativeLoaderInternal<'loader>
[src]
impl<'loader> Ord for NativeLoaderInternal<'loader>
[src]impl<'loader> PartialEq<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>
[src]
impl<'loader> PartialEq<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>
[src]fn eq(&self, other: &NativeLoaderInternal<'loader>) -> bool
[src]
fn ne(&self, other: &NativeLoaderInternal<'loader>) -> bool
[src]
impl<'loader> PartialOrd<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>
[src]
impl<'loader> PartialOrd<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>
[src]fn partial_cmp(&self, other: &NativeLoaderInternal<'loader>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl Send for NativeLoaderInternal<'_>
[src]
impl Send for NativeLoaderInternal<'_>
[src]impl<'loader> StructuralEq for NativeLoaderInternal<'loader>
[src]
impl<'loader> StructuralEq for NativeLoaderInternal<'loader>
[src]impl<'loader> StructuralPartialEq for NativeLoaderInternal<'loader>
[src]
impl<'loader> StructuralPartialEq for NativeLoaderInternal<'loader>
[src]impl Sync for NativeLoaderInternal<'_>
[src]
impl Sync for NativeLoaderInternal<'_>
[src]Auto Trait Implementations
impl<'loader> RefUnwindSafe for NativeLoaderInternal<'loader>
impl<'loader> RefUnwindSafe for NativeLoaderInternal<'loader>
impl<'loader> Unpin for NativeLoaderInternal<'loader>
impl<'loader> Unpin for NativeLoaderInternal<'loader>
impl<'loader> UnwindSafe for NativeLoaderInternal<'loader>
impl<'loader> UnwindSafe for NativeLoaderInternal<'loader>