pub enum RomSaveError {
Show 17 variants
BlowfishKeyNeeded,
Io {
source: Error,
},
File {
source: FileError,
},
SerdeJson {
source: Error,
},
LogoSave {
source: LogoSaveError,
},
LogoLoad {
source: LogoLoadError,
},
RawBuildInfo {
source: RawBuildInfoError,
},
Arm9 {
source: Arm9Error,
},
Arm9Autoload {
source: Arm9AutoloadError,
},
BannerImage {
source: BannerImageError,
},
Lz77Decompress {
source: Lz77DecompressError,
},
Overlay {
source: OverlayError,
},
HmacSha1FromBytes {
source: HmacSha1FromBytesError,
},
Arm9HmacSha1Key {
source: Arm9HmacSha1KeyError,
},
Arm9OverlaySignatures {
source: Arm9OverlaySignaturesError,
},
NoHmacSha1Key {
backtrace: Backtrace,
},
AutoloadNotFound {
index: u32,
backtrace: Backtrace,
},
}Variants§
BlowfishKeyNeeded
Occurs when the ROM is encrypted but no Blowfish key was provided.
Io
See io::Error.
File
See [FileError].
Fields
§
source: FileErrorSource error.
SerdeJson
See serde_yml::Error.
LogoSave
See LogoSaveError.
Fields
§
source: LogoSaveErrorSource error.
LogoLoad
See LogoLoadError.
Fields
§
source: LogoLoadErrorSource error.
RawBuildInfo
See RawBuildInfoError.
Fields
§
source: RawBuildInfoErrorSource error.
Arm9
See Arm9Error.
Arm9Autoload
See Arm9AutoloadError.
Fields
§
source: Arm9AutoloadErrorSource error.
BannerImage
See BannerImageError.
Fields
§
source: BannerImageErrorSource error.
Lz77Decompress
See Lz77DecompressError.
Fields
§
source: Lz77DecompressErrorSource error.
Overlay
See OverlayError.
Fields
§
source: OverlayErrorSource error.
HmacSha1FromBytes
Fields
§
source: HmacSha1FromBytesErrorSource error.
Arm9HmacSha1Key
See Arm9HmacSha1KeyError.
Fields
§
source: Arm9HmacSha1KeyErrorSource error.
Arm9OverlaySignatures
Fields
§
source: Arm9OverlaySignaturesErrorSource error.
NoHmacSha1Key
Occurs when the HMAC-SHA1 key was not provided for a signed overlay.
AutoloadNotFound
Occurs when an autoload was not found in the config.
Trait Implementations§
Source§impl Debug for RomSaveError
impl Debug for RomSaveError
Source§impl Display for RomSaveError
impl Display for RomSaveError
Source§impl Error for RomSaveError
impl Error for RomSaveError
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 RomSaveError
impl ErrorCompat for RomSaveError
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<Arm9AutoloadError> for RomSaveError
impl From<Arm9AutoloadError> for RomSaveError
Source§fn from(error: Arm9AutoloadError) -> Self
fn from(error: Arm9AutoloadError) -> Self
Converts to this type from the input type.
Source§impl From<Arm9Error> for RomSaveError
impl From<Arm9Error> for RomSaveError
Source§impl From<Arm9HmacSha1KeyError> for RomSaveError
impl From<Arm9HmacSha1KeyError> for RomSaveError
Source§fn from(error: Arm9HmacSha1KeyError) -> Self
fn from(error: Arm9HmacSha1KeyError) -> Self
Converts to this type from the input type.
Source§impl From<Arm9OverlaySignaturesError> for RomSaveError
impl From<Arm9OverlaySignaturesError> for RomSaveError
Source§fn from(error: Arm9OverlaySignaturesError) -> Self
fn from(error: Arm9OverlaySignaturesError) -> Self
Converts to this type from the input type.
Source§impl From<BannerImageError> for RomSaveError
impl From<BannerImageError> for RomSaveError
Source§fn from(error: BannerImageError) -> Self
fn from(error: BannerImageError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RomSaveError
impl From<Error> for RomSaveError
Source§impl From<Error> for RomSaveError
impl From<Error> for RomSaveError
Source§impl From<HmacSha1FromBytesError> for RomSaveError
impl From<HmacSha1FromBytesError> for RomSaveError
Source§fn from(error: HmacSha1FromBytesError) -> Self
fn from(error: HmacSha1FromBytesError) -> Self
Converts to this type from the input type.
Source§impl From<LogoLoadError> for RomSaveError
impl From<LogoLoadError> for RomSaveError
Source§fn from(error: LogoLoadError) -> Self
fn from(error: LogoLoadError) -> Self
Converts to this type from the input type.
Source§impl From<LogoSaveError> for RomSaveError
impl From<LogoSaveError> for RomSaveError
Source§fn from(error: LogoSaveError) -> Self
fn from(error: LogoSaveError) -> Self
Converts to this type from the input type.
Source§impl From<Lz77DecompressError> for RomSaveError
impl From<Lz77DecompressError> for RomSaveError
Source§fn from(error: Lz77DecompressError) -> Self
fn from(error: Lz77DecompressError) -> 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<RawBuildInfoError> for RomSaveError
impl From<RawBuildInfoError> for RomSaveError
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 RomSaveError
impl !RefUnwindSafe for RomSaveError
impl Send for RomSaveError
impl Sync for RomSaveError
impl Unpin for RomSaveError
impl !UnwindSafe for RomSaveError
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