pub enum LoadError {
Io(Error),
NotMachO(String),
UnsupportedArch(String),
PageLayout(String),
Map(MapError),
Resolve(String),
TooManyDylibs(usize),
NotDylib(String),
UnresolvedSymbol {
name: String,
},
MissingGot {
count: usize,
},
ImageSlid {
path: String,
slide: u64,
},
NotImplemented(&'static str),
}Expand description
Failures while reading or validating a Mach-O image.
Variants§
Io(Error)
Filesystem or I/O failure.
NotMachO(String)
Bytes are not a recognized Mach-O (or supported fat) image.
UnsupportedArch(String)
Image architecture is not arm64.
PageLayout(String)
Host/guest page geometry could not be established.
Map(MapError)
Guest memory mapping failed.
Resolve(String)
Install-name resolution failed hard (e.g. invalid encoding).
TooManyDylibs(usize)
Dependency graph exceeded the dylib cap.
NotDylib(String)
A dependency path existed but is not MH_DYLIB.
UnresolvedSymbol
Strong undefined symbol with no export in the process set (PR2 bind).
MissingGot
GOT section missing or too small for undefined imports (PR2 bind).
ImageSlid
Main image slid but fixed adrp GOT addressing requires preferred base.
NotImplemented(&'static str)
Feature not implemented yet (scaffolding).
Implementations§
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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 !RefUnwindSafe for LoadError
impl !UnwindSafe for LoadError
impl Freeze for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
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