pub enum RomSaveError {
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,
},
}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.
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<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<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<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