#[non_exhaustive]pub enum LegacyMovieError {
Truncated {
expected: usize,
got: usize,
},
BadMagic {
format: &'static str,
},
BadVersion {
format: &'static str,
got: u32,
},
Malformed {
format: &'static str,
reason: &'static str,
},
Unsupported {
format: &'static str,
reason: &'static str,
},
}Expand description
Errors produced by the legacy movie importers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Truncated
The blob is shorter than the format’s fixed header.
BadMagic
The signature did not match the expected magic for this format.
BadVersion
The format version is outside the range we understand.
Malformed
A structural problem decoding the input stream (a malformed record or an offset that runs past EOF).
Unsupported
A feature we deliberately do not support (a save-state / non-reset start, a four-score movie, or a non-NES container).
Trait Implementations§
Source§impl Debug for LegacyMovieError
impl Debug for LegacyMovieError
Source§impl Display for LegacyMovieError
impl Display for LegacyMovieError
Source§impl Error for LegacyMovieError
impl Error for LegacyMovieError
1.30.0 · 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 LegacyMovieError
impl RefUnwindSafe for LegacyMovieError
impl Send for LegacyMovieError
impl Sync for LegacyMovieError
impl Unpin for LegacyMovieError
impl UnsafeUnpin for LegacyMovieError
impl UnwindSafe for LegacyMovieError
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