#[non_exhaustive]pub enum Bk2Error {
WrongPlatform(String),
BadInteger {
key: String,
value: String,
},
MissingLogKey,
Malformed {
line: usize,
reason: &'static str,
},
Unsupported(&'static str),
}Expand description
Errors produced by .bk2 text import / export.
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.
WrongPlatform(String)
The header declared a platform that is not an NES family.
BadInteger
A header line declared an integer key whose value did not parse.
MissingLogKey
The input log had no LogKey: declaration line.
Malformed
A structural problem with an input-log line. line is the 1-based
input-frame line number.
Fields
Unsupported(&'static str)
A feature of the .bk2 (or of the Movie being exported) that this
module deliberately does not support.
Trait Implementations§
Source§impl Error for Bk2Error
impl Error for Bk2Error
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 Bk2Error
impl RefUnwindSafe for Bk2Error
impl Send for Bk2Error
impl Sync for Bk2Error
impl Unpin for Bk2Error
impl UnsafeUnpin for Bk2Error
impl UnwindSafe for Bk2Error
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