pub enum OverlayError {
RawHeader {
source: RawHeaderError,
},
RawFat {
source: RawFatError,
},
Arm9OverlaySignatures {
source: Arm9OverlaySignaturesError,
},
NoOverlaySignatures {
backtrace: Backtrace,
},
SignedArm7Overlay {
backtrace: Backtrace,
},
OverlayCompression {
backtrace: Backtrace,
},
}Expand description
Errors related to Overlay.
Variants§
RawHeader
See RawHeaderError.
Fields
§
source: RawHeaderErrorSource error.
RawFat
See RawFatError.
Fields
§
source: RawFatErrorSource error.
Arm9OverlaySignatures
Fields
§
source: Arm9OverlaySignaturesErrorSource error.
NoOverlaySignatures
Occurs when there are no overlay signatures in the ARM9 program.
SignedArm7Overlay
Occurs when trying to create a signed ARM7 overlay, but signing ARM7 overlays is not supported.
OverlayCompression
Occurs when trying to compute the signature but the overlay is not in its originally compressed state.
Trait Implementations§
Source§impl Debug for OverlayError
impl Debug for OverlayError
Source§impl Display for OverlayError
impl Display for OverlayError
Source§impl Error for OverlayError
impl Error for OverlayError
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 OverlayError
impl ErrorCompat for OverlayError
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<Arm9OverlaySignaturesError> for OverlayError
impl From<Arm9OverlaySignaturesError> for OverlayError
Source§fn from(error: Arm9OverlaySignaturesError) -> Self
fn from(error: Arm9OverlaySignaturesError) -> Self
Converts to this type from the input type.
Source§impl From<OverlayError> for RomExtractError
impl From<OverlayError> for RomExtractError
Source§fn from(error: OverlayError) -> Self
fn from(error: OverlayError) -> Self
Converts to this type from the input type.
Source§impl From<OverlayError> for RomSaveError
impl From<OverlayError> for RomSaveError
Source§fn from(error: OverlayError) -> Self
fn from(error: OverlayError) -> Self
Converts to this type from the input type.
Source§impl From<RawFatError> for OverlayError
impl From<RawFatError> for OverlayError
Source§fn from(error: RawFatError) -> Self
fn from(error: RawFatError) -> Self
Converts to this type from the input type.
Source§impl From<RawHeaderError> for OverlayError
impl From<RawHeaderError> for OverlayError
Source§fn from(error: RawHeaderError) -> Self
fn from(error: RawHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for OverlayError
impl RefUnwindSafe for OverlayError
impl Send for OverlayError
impl Sync for OverlayError
impl Unpin for OverlayError
impl UnwindSafe for OverlayError
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