pub enum ModuleError {
Show 17 variants
NoSections {
backtrace: Backtrace,
},
CtorRange {
source: CtorRangeError,
},
MainFunction {
source: MainFunctionError,
},
RawBuildInfo {
source: RawBuildInfoError,
},
SymbolMap {
source: SymbolMapError,
},
FunctionAnalysis {
source: FunctionAnalysisError,
},
FunctionAnalysisFailed {
name: String,
parse_result: ParseFunctionResult,
backtrace: Backtrace,
},
Section {
source: SectionError,
},
Sections {
source: SectionsError,
},
NoInitFunctions {
module_kind: ModuleKind,
min_address: u32,
max_address: u32,
backtrace: Backtrace,
},
NoEntryFunctions {
backtrace: Backtrace,
},
NoArm9Functions {
backtrace: Backtrace,
},
NoItcmFunctions {
backtrace: Backtrace,
},
FindLocalData {
source: FindLocalDataError,
},
SectionCode {
source: SectionCodeError,
},
NotAnUnknownAutoload {
backtrace: Backtrace,
},
ExceptionData {
source: ExceptionDataError,
},
}Variants§
NoSections
CtorRange
Fields
§
source: CtorRangeErrorMainFunction
Fields
§
source: MainFunctionErrorRawBuildInfo
Fields
§
source: RawBuildInfoErrorSymbolMap
Fields
§
source: SymbolMapErrorFunctionAnalysis
Fields
§
source: FunctionAnalysisErrorFunctionAnalysisFailed
Section
Fields
§
source: SectionErrorSections
Fields
§
source: SectionsErrorNoInitFunctions
NoEntryFunctions
NoArm9Functions
NoItcmFunctions
FindLocalData
Fields
§
source: FindLocalDataErrorSectionCode
Fields
§
source: SectionCodeErrorNotAnUnknownAutoload
ExceptionData
Fields
§
source: ExceptionDataErrorTrait Implementations§
Source§impl Debug for ModuleError
impl Debug for ModuleError
Source§impl Display for ModuleError
impl Display for ModuleError
Source§impl Error for ModuleError
impl Error for ModuleError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ModuleError
impl ErrorCompat for ModuleError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<FunctionAnalysisError> for ModuleError
impl From<FunctionAnalysisError> for ModuleError
Source§fn from(error: FunctionAnalysisError) -> Self
fn from(error: FunctionAnalysisError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleError> for LoadModuleError
impl From<ModuleError> for LoadModuleError
Source§fn from(error: ModuleError) -> Self
fn from(error: ModuleError) -> Self
Converts to this type from the input type.
Source§impl From<RawBuildInfoError> for ModuleError
impl From<RawBuildInfoError> for ModuleError
Source§fn from(error: RawBuildInfoError) -> Self
fn from(error: RawBuildInfoError) -> Self
Converts to this type from the input type.
Source§impl From<SectionCodeError> for ModuleError
impl From<SectionCodeError> for ModuleError
Source§fn from(error: SectionCodeError) -> Self
fn from(error: SectionCodeError) -> Self
Converts to this type from the input type.
Source§impl From<SectionError> for ModuleError
impl From<SectionError> for ModuleError
Source§fn from(error: SectionError) -> Self
fn from(error: SectionError) -> Self
Converts to this type from the input type.
Source§impl From<SectionsError> for ModuleError
impl From<SectionsError> for ModuleError
Source§fn from(error: SectionsError) -> Self
fn from(error: SectionsError) -> Self
Converts to this type from the input type.
Source§impl From<SymbolMapError> for ModuleError
impl From<SymbolMapError> for ModuleError
Source§fn from(error: SymbolMapError) -> Self
fn from(error: SymbolMapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ModuleError
impl RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl UnwindSafe for ModuleError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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