pub enum HotpatchError {
LibraryLoad {
path: String,
source: Error,
},
MissingExport {
symbol: &'static str,
source: Error,
},
AbiMismatch {
expected_magic: u32,
got_magic: u32,
expected_version: u16,
got_version: u16,
},
InvalidModule(String),
SymbolNotFound(String),
FallbackAlreadyRegistered(String),
LifecycleFailed {
module: String,
hook: &'static str,
status: i32,
},
}Variants§
LibraryLoad
MissingExport
AbiMismatch
InvalidModule(String)
SymbolNotFound(String)
FallbackAlreadyRegistered(String)
LifecycleFailed
Trait Implementations§
Source§impl Debug for HotpatchError
impl Debug for HotpatchError
Source§impl Display for HotpatchError
impl Display for HotpatchError
Source§impl Error for HotpatchError
impl Error for HotpatchError
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()
Auto Trait Implementations§
impl Freeze for HotpatchError
impl !RefUnwindSafe for HotpatchError
impl Send for HotpatchError
impl Sync for HotpatchError
impl Unpin for HotpatchError
impl UnsafeUnpin for HotpatchError
impl !UnwindSafe for HotpatchError
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