pub enum Error {
Cart(Error),
Sram(Error),
SaveState(Error),
NoSaveStateFound,
RomNotLoaded,
CpuCorrupted,
InvalidGenieCode(Error),
InvalidFilePath(PathBuf),
UnimplementedMapper(u16),
Fs(Error),
Io {
context: String,
source: Error,
},
}
Expand description
Errors that ControlDeck
can return.
Variants§
Cart(Error)
Cart
error when loading a ROM.
Sram(Error)
Battery-backed RAM error.
SaveState(Error)
Save state error.
NoSaveStateFound
When trying to load a save state that doesn’t exist.
RomNotLoaded
Operational error indicating a ROM must be loaded first.
CpuCorrupted
CPU state is corrupted and emulation can’t continue. Could be due to a bad ROM image or a corrupt save state.
InvalidGenieCode(Error)
Invalid Game Genie code error.
InvalidFilePath(PathBuf)
Invalid file path.
UnimplementedMapper(u16)
Fs(Error)
Filesystem error.
Io
IO error.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
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