pub enum FunctionDecompilerError {
FunctionError {
source: FunctionError,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
RegisterNotFound {
register_id: usize,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
OperandError {
source: OperandError,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
AstNodeError {
source: AstNodeError,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
InstructionMustHaveOperand {
opcode: Opcode,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
UnexpectedNodeType {
expected: String,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
UnimplementedOpcode {
opcode: Opcode,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
ExecutionStackEmpty {
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
UnexpectedExecutionState {
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
StructureAnalysisError {
source: Box<StructureAnalysisError>,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
Other {
message: String,
context: Box<FunctionDecompilerErrorContext>,
backtrace: Backtrace,
},
}
Expand description
An error when decompiling a function
Variants§
FunctionError
Encountered FunctionError
Fields
§
source: FunctionError
The source of the error
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
RegisterNotFound
Register not found
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
OperandError
Encountered an error while processing the operand
Fields
§
source: OperandError
The source of the error
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
AstNodeError
Encountered AstNodeError
Fields
§
source: AstNodeError
The source of the error
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
InstructionMustHaveOperand
The current instruction must have an operand
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
UnexpectedNodeType
Invalid node type on stack
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
UnimplementedOpcode
Unimplemented Opcode
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
ExecutionStackEmpty
Execution state stack is empty
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
UnexpectedExecutionState
Unexpected execution state
Fields
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
StructureAnalysisError
Structure analysis error
Fields
§
source: Box<StructureAnalysisError>
The source of the error
§
context: Box<FunctionDecompilerErrorContext>
The context of the error
Other
All other errors
Trait Implementations§
Source§impl Debug for FunctionDecompilerError
impl Debug for FunctionDecompilerError
Source§impl Display for FunctionDecompilerError
impl Display for FunctionDecompilerError
Source§impl Error for FunctionDecompilerError
impl Error for FunctionDecompilerError
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
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. 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 FunctionDecompilerError
impl RefUnwindSafe for FunctionDecompilerError
impl Send for FunctionDecompilerError
impl Sync for FunctionDecompilerError
impl Unpin for FunctionDecompilerError
impl UnwindSafe for FunctionDecompilerError
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