pub enum SaveStateError {
Malformed,
BadMagic,
RomMismatch,
UnsupportedFormat {
file_version: u16,
min_supported: u16,
},
}Expand description
Everything that can go wrong loading a save-state.
Variants§
Malformed
The byte stream didn’t decode as a SaveState at all (truncated,
corrupt, or not a save-state file).
BadMagic
The decoded header’s magic didn’t match — this isn’t a Rusty2600 save-state file.
RomMismatch
The save-state’s rom_tag doesn’t match the ROM currently loaded.
UnsupportedFormat
The save-state’s format version is older than this build can read.
Trait Implementations§
Source§impl Debug for SaveStateError
impl Debug for SaveStateError
Auto Trait Implementations§
impl Freeze for SaveStateError
impl RefUnwindSafe for SaveStateError
impl Send for SaveStateError
impl Sync for SaveStateError
impl Unpin for SaveStateError
impl UnsafeUnpin for SaveStateError
impl UnwindSafe for SaveStateError
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