pub enum LeError {
NotLe,
Lx,
BigEndian,
Truncated(&'static str),
UnsupportedPage {
page: u32,
flags: u8,
},
BadFixup {
offset: usize,
},
BadObject(u32),
}Expand description
Why an LE image could not be parsed.
Variants§
NotLe
No MZ stub, or e_lfanew does not point at an LE signature.
Lx
The header is LX, which this parser does not handle.
BigEndian
The header declares a big-endian byte or word order.
Truncated(&'static str)
A table or page lies past the end of the file.
UnsupportedPage
A page-map entry is iterated (EXEPACK) or of an unknown type.
BadFixup
A fixup record has a source type or target type outside the spec.
BadObject(u32)
A header or fixup names an object the object table does not have.
Trait Implementations§
impl Eq for LeError
Source§impl Error for LeError
impl Error for LeError
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()
impl StructuralPartialEq for LeError
Auto Trait Implementations§
impl Freeze for LeError
impl RefUnwindSafe for LeError
impl Send for LeError
impl Sync for LeError
impl Unpin for LeError
impl UnsafeUnpin for LeError
impl UnwindSafe for LeError
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