pub enum ModuleError {
LoadFailed(String),
NoEntryPoint(String),
InitFailed(String),
IncompatibleVersion {
module: (u32, u32),
kernel: (u32, u32),
},
InUse {
module: ModuleId,
by: ModuleId,
},
NotLoaded(ModuleId),
NotFound(String),
}Expand description
Errors that can occur during module operations.
Variants§
LoadFailed(String)
Failed to load the shared object file.
NoEntryPoint(String)
Module does not export the required entry point.
InitFailed(String)
Module initialization failed.
IncompatibleVersion
Module API version is incompatible with kernel.
Fields
InUse
Module is in use by another module.
Fields
NotLoaded(ModuleId)
Module is not currently loaded.
NotFound(String)
Module file was not found.
Trait Implementations§
Source§impl Clone for ModuleError
impl Clone for ModuleError
Source§fn clone(&self) -> ModuleError
fn clone(&self) -> ModuleError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModuleError
impl Debug for ModuleError
Source§impl Display for ModuleError
impl Display for ModuleError
Source§impl Error for ModuleError
impl Error for ModuleError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ModuleError
impl PartialEq for ModuleError
impl Eq for ModuleError
impl StructuralPartialEq for ModuleError
Auto Trait Implementations§
impl Freeze for ModuleError
impl RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl UnsafeUnpin for ModuleError
impl UnwindSafe for ModuleError
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