#[non_exhaustive]pub enum ErrorKind {
NotVqa,
InvalidHeader,
Truncated,
InvalidChunk,
Lcw(LcwError),
TooLarge(Limit),
Video(VideoError),
}Expand description
What kind of Error happened.
New kinds may be added in minor releases, as may new causes in
VideoError, Limit and LcwError.
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.
NotVqa
The input doesn’t start with a FORM chunk holding a WVQA movie.
InvalidHeader
The VQHD header is missing, isn’t 42 bytes long, holds a version
other than 1, 2 or 3, or describes a movie that can’t be decoded
(blocks of zero width or height).
Truncated
The input ends inside a chunk: the file is cut short.
InvalidChunk
The chunks don’t line up: an ID that isn’t four uppercase ASCII letters or digits (the walk has lost its place), or a sub-chunk running past the end of its container’s payload.
Lcw(LcwError)
LCW-compressed chunk data is malformed.
TooLarge(Limit)
A size in the file exceeds a sanity limit.
Video(VideoError)
Video data is malformed.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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