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