#[non_exhaustive]pub enum Fm2Error {
MissingVersion,
BadVersion {
got: u32,
},
BadInteger {
key: String,
value: String,
},
Malformed {
line: usize,
reason: &'static str,
},
Unsupported(&'static str),
}Expand description
Errors produced by .fm2 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.
MissingVersion
The header had no version line, or it was not the first key.
BadVersion
The version value was not FM2_VERSION.
BadInteger
A header line declared an integer key whose value did not parse.
Malformed
A structural problem with an input-log line (missing pipes, wrong
field count, or a pad field of the wrong length). line is the
1-based input-log line number.
Fields
Unsupported(&'static str)
A feature of the .fm2 (or of the Movie being exported) that this
module deliberately does not support.
Trait Implementations§
Source§impl Error for Fm2Error
impl Error for Fm2Error
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 Fm2Error
impl RefUnwindSafe for Fm2Error
impl Send for Fm2Error
impl Sync for Fm2Error
impl Unpin for Fm2Error
impl UnsafeUnpin for Fm2Error
impl UnwindSafe for Fm2Error
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