pub enum DisassembleError {
BadAddress,
HeaderTooSmall,
BadTableOffset,
BadExceptionTable,
BadDebugRecords,
Decode(DecodeError),
Overrun {
offset: u32,
},
BadBranch {
offset: u32,
target: i64,
},
}Expand description
Why a function could not be disassembled.
Variants§
BadAddress
The address is not in the image’s code pool, or too close to the end of its page to hold a method header.
HeaderTooSmall
The image’s method header size is smaller than this crate can read.
BadTableOffset
The header places the exception table or debug records before the first instruction or beyond the page.
BadExceptionTable
The exception table runs past the end of the page.
BadDebugRecords
The debug records are malformed or run past the end of the page.
Decode(DecodeError)
An instruction could not be decoded.
Overrun
An instruction runs past the end of the code.
BadBranch
A branch leaves the function’s code, so the code cannot be followed.
Trait Implementations§
Source§impl Clone for DisassembleError
impl Clone for DisassembleError
impl Copy for DisassembleError
Source§impl Debug for DisassembleError
impl Debug for DisassembleError
Source§impl Display for DisassembleError
impl Display for DisassembleError
impl Eq for DisassembleError
Source§impl Error for DisassembleError
impl Error for DisassembleError
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 From<DecodeError> for DisassembleError
impl From<DecodeError> for DisassembleError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisassembleError
impl PartialEq for DisassembleError
impl StructuralPartialEq for DisassembleError
Auto Trait Implementations§
impl Forget for DisassembleError
impl Freeze for DisassembleError
impl Move for DisassembleError
impl RefUnwindSafe for DisassembleError
impl Send for DisassembleError
impl Sync for DisassembleError
impl Unpin for DisassembleError
impl UnsafeUnpin for DisassembleError
impl UnwindSafe for DisassembleError
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