pub struct ModuleLoader { /* private fields */ }Available on crate feature
module only.Expand description
Represents a module loader which can support loading multiple related modules.
Implementations§
Source§impl ModuleLoader
impl ModuleLoader
Sourcepub fn install(builtins: &'static [&'static VirtualLibrary])
pub fn install(builtins: &'static [&'static VirtualLibrary])
Create a new instance of a ModuleLoader and installs it as this application’s ModuleLoader.
Sourcepub fn uninstall()
pub fn uninstall()
Uninstall the application’s ModuleLoader. This function will panic if this module did not install a ModuleLoader but is rather sharing the instance of a different application.
Sourcepub fn install_default()
pub fn install_default()
Installs a default ModuleLoader for this application.
Sourcepub fn install_from_existing(loader: &'static Mutex<ModuleLoader>)
pub fn install_from_existing(loader: &'static Mutex<ModuleLoader>)
Install the ModuleLoader of this module to an existing instance.
Sourcepub fn lock<'a>() -> Lock<'a>
pub fn lock<'a>() -> Lock<'a>
Lock the ModuleLoader installed for the application and returns a lock which is used to operate the ModuleLoader.
Auto Trait Implementations§
impl Freeze for ModuleLoader
impl RefUnwindSafe for ModuleLoader
impl Send for ModuleLoader
impl !Sync for ModuleLoader
impl Unpin for ModuleLoader
impl UnwindSafe for ModuleLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more