pub enum Arm9Error {
DataTooSmall {
expected: usize,
actual: usize,
backtrace: Backtrace,
},
Blowfish {
source: BlowfishError,
},
NotEncryObj {
backtrace: Backtrace,
},
RawBuildInfo {
source: RawBuildInfoError,
},
Io {
source: Error,
},
}Expand description
Errors related to Arm9.
Variants§
DataTooSmall
Occurs when the program is too small to contain a secure area.
Fields
Blowfish
See BlowfishError.
Fields
§
source: BlowfishErrorSource error.
NotEncryObj
Occurs when the string “encryObj” is not found when de/encrypting the secure area.
RawBuildInfo
See RawBuildInfoError.
Fields
§
source: RawBuildInfoErrorSource error.
Io
See io::Error.
Trait Implementations§
source§impl Error for Arm9Error
impl Error for Arm9Error
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 Arm9Error
impl ErrorCompat for Arm9Error
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<Arm9Error> for RomSaveError
impl From<Arm9Error> for RomSaveError
source§impl From<BlowfishError> for Arm9Error
impl From<BlowfishError> for Arm9Error
source§fn from(error: BlowfishError) -> Self
fn from(error: BlowfishError) -> Self
Converts to this type from the input type.
source§impl From<RawBuildInfoError> for Arm9Error
impl From<RawBuildInfoError> for Arm9Error
source§fn from(error: RawBuildInfoError) -> Self
fn from(error: RawBuildInfoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Arm9Error
impl !RefUnwindSafe for Arm9Error
impl Send for Arm9Error
impl Sync for Arm9Error
impl Unpin for Arm9Error
impl !UnwindSafe for Arm9Error
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