pub struct ModuleManager {
pub modules: Vec<EllieModule>,
}Fields§
§modules: Vec<EllieModule>Implementations§
Source§impl ModuleManager
impl ModuleManager
pub fn new() -> Self
pub fn find_module_by_item_hash( &mut self, hash: usize, ) -> Option<&mut EllieModule>
pub fn find_module_by_item_name( &mut self, name: &String, ) -> Option<&mut EllieModule>
pub fn register_module(&mut self, module: EllieModule)
pub fn get_module(&mut self, module_name: &str) -> Option<&mut EllieModule>
pub fn get_module_mut( &mut self, module_name: String, ) -> Option<&mut EllieModule>
Sourcepub fn add_native_call_trace(
&mut self,
trace: NativeCallTrace,
) -> Option<&'static str>
pub fn add_native_call_trace( &mut self, trace: NativeCallTrace, ) -> Option<&'static str>
Register function to existing module items This function gets the native call trace from program and and matches with already registered native module functions. ## Params
trace-NativeCallTrace
§Output
Option<usize>if the function is registered successfully it will return None, or else it will return the cause of the error
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ModuleManager
impl !Sync for ModuleManager
impl !UnwindSafe for ModuleManager
impl Freeze for ModuleManager
impl Send for ModuleManager
impl Unpin for ModuleManager
impl UnsafeUnpin for ModuleManager
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