pub enum Error {
Load(Error),
MissingExport(&'static str, Error),
UnsupportedBinary(String),
Signature(String),
Init,
NotFound(String),
Nul(String),
Hook(HookingError),
Exception(String),
}Expand description
What went wrong loading the game binary, finding things in it, or calling and hooking its methods.
Variants§
Load(Error)
The game binary couldn’t be opened, or isn’t loaded in this process.
MissingExport(&'static str, Error)
An il2cpp_* function this crate needs isn’t exported by the game
binary, e.g. the binary isn’t an Il2Cpp GameAssembly.
UnsupportedBinary(String)
The game binary is for another platform, e.g. a Windows build running under Wine/Proton seen from a Linux mod.
Signature(String)
A hook’s or call’s Rust types don’t match the method’s real signature.
Init
il2cpp_init returned failure in Il2Cpp::init_standalone.
NotFound(String)
An assembly, class, method, field or object wasn’t found, or couldn’t be allocated.
Nul(String)
A name passed to the runtime contains a nul byte, so it can’t be a C string.
Hook(HookingError)
Installing or removing a hook failed.
Exception(String)
The called method threw a managed exception; holds its ToString().
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()