pub enum ParseError {
InvalidChunkLayout,
InvalidInput,
InvalidVp8lPrefixCode,
MissingRequiredChunk(FourCC),
TruncatedChunk,
UnsupportedChunk(FourCC),
UnsupportedVp8lVersion(u8),
}Expand description
Variants§
InvalidChunkLayout
The input is invalid because its chunks are in a ordering or configuration disallowed by the WebP specification.
InvalidInput
The input is invalid.
InvalidVp8lPrefixCode
The VP8L image data contained an invalid prefix code.
MissingRequiredChunk(FourCC)
The input is invalid because it is missing a chunk required by the WebP specification.
TruncatedChunk
The input is invalid because the input ended before the end of a valid RIFF chunk.
This can occur either when the entire input is truncated or when a chunk size is incorrect.
UnsupportedChunk(FourCC)
The input is unsupported because it contains an unknown chunk type.
UnsupportedVp8lVersion(u8)
The input is unsupported because it contains an unknown VP8L stream version.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
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()
Source§impl ReportableError for ParseError
impl ReportableError for ParseError
Source§type Stack = ReportStack
type Stack = ReportStack
The error stack type corresponding to this error.
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
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