Skip to main content

Error

Enum Error 

Source
pub enum Error {
Show 16 variants NotImplemented, Unsupported(UnsupportedKind), Container(ContainerError), Vp8x(Vp8xError), Alph(AlphError), Anim(AnimError), Anmf(AnmfError), Build(BuildError), Lossy(WebpLossyError), Vp8(DecodeError), Lossless(WebpLosslessError), Vp8lTransform(TransformListError), Vp8lPrefix(PrefixError), Vp8lMetaPrefix(MetaPrefixError), Vp8lDecode(DecodeError), Vp8lEncode(EncodeError),
}
Expand description

Crate-local error type.

Variants§

§

NotImplemented

A code path that has not been wired up yet in this round.

§

Unsupported(UnsupportedKind)

The file is well-formed but carries an image kind this crate does not decode yet. Currently this is the §2.5 VP8 lossy bitstream — routed out via extract_lossy_chunk to a downstream VP8 decoder rather than decoded here.

§

Container(ContainerError)

The RIFF/WEBP container walker rejected the input.

§

Vp8x(Vp8xError)

The §2.7.1 VP8X chunk parser rejected the input.

§

Alph(AlphError)

The §2.7.1.2 ALPH info-byte parser rejected the input.

§

Anim(AnimError)

The §2.7.1.1 ANIM payload parser rejected the input.

§

Anmf(AnmfError)

The §2.7.1.1 ANMF per-frame header parser rejected the input.

§

Build(BuildError)

The §2.3 / §2.4 / §2.7.1 RIFF/WEBP builders rejected the input.

§

Lossy(WebpLossyError)

The §2.5 typed VP8 chunk handle rejected the chunk payload.

§

Vp8(DecodeError)

The §2.5 VP8 lossy bitstream decode (delegated to the oxideav-vp8 sibling crate) rejected the payload.

Wraps oxideav-vp8’s published oxideav_vp8::DecodeError. (Once vp8 publishes its Vp8Error umbrella — currently on vp8 master but not on crates.io — this can widen to that type.)

§

Lossless(WebpLosslessError)

The §2.6 typed VP8L chunk handle rejected the chunk payload.

§

Vp8lTransform(TransformListError)

The §4 VP8L transform-list reader rejected the bitstream.

§

Vp8lPrefix(PrefixError)

The §6.2.1 VP8L prefix-code reader rejected the bitstream.

§

Vp8lMetaPrefix(MetaPrefixError)

The §5.2.3 / §6.2.2 VP8L meta-prefix header reader rejected the bitstream.

§

Vp8lDecode(DecodeError)

The §5.2 VP8L per-pixel ARGB decode loop rejected the bitstream.

§

Vp8lEncode(EncodeError)

The §3.7 / §3.8 VP8L lossless encoder rejected the input.

Trait Implementations§

Source§

impl Clone for Error

Source§

fn clone(&self) -> Error

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Error

Source§

impl Error for Error

1.30.0 · Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AlphError> for Error

Source§

fn from(e: AlphError) -> Self

Converts to this type from the input type.
Source§

impl From<AnimError> for Error

Source§

fn from(e: AnimError) -> Self

Converts to this type from the input type.
Source§

impl From<AnmfError> for Error

Source§

fn from(e: AnmfError) -> Self

Converts to this type from the input type.
Source§

impl From<BuildError> for Error

Source§

fn from(e: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<ContainerError> for Error

Source§

fn from(e: ContainerError) -> Self

Converts to this type from the input type.
Source§

impl From<DecodeError> for Error

Source§

fn from(e: DecodeError) -> Self

Converts to this type from the input type.
Source§

impl From<DecodeError> for Error

Source§

fn from(e: DecodeError) -> Self

Converts to this type from the input type.
Source§

impl From<EncodeError> for Error

Source§

fn from(e: EncodeError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Bridge crate-local errors to the framework-wide oxideav_core::Error so trait impls can use ? on the framework-free decode path.

Error::Unsupported(LossyVp8) and Error::Unsupported(NoImageData) both map to oxideav_core::Error::Unsupported(...). Every other variant carries diagnostic text already built by the originating sub-module’s Display impl — it’s surfaced verbatim via Error::InvalidData(...).

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for WebpError

Map the rich internal Error onto the coarse published WebpError.

Unsupported / NotImplemented collapse to WebpError::Unsupported; every other variant (a malformed container or a sub-decoder rejecting the bitstream) is WebpError::InvalidData.

Source§

fn from(e: Error) -> Self

Converts to this type from the input type.
Source§

impl From<MetaPrefixError> for Error

Source§

fn from(e: MetaPrefixError) -> Self

Converts to this type from the input type.
Source§

impl From<PrefixError> for Error

Source§

fn from(e: PrefixError) -> Self

Converts to this type from the input type.
Source§

impl From<TransformListError> for Error

Source§

fn from(e: TransformListError) -> Self

Converts to this type from the input type.
Source§

impl From<Vp8xError> for Error

Source§

fn from(e: Vp8xError) -> Self

Converts to this type from the input type.
Source§

impl From<WebpLosslessError> for Error

Source§

fn from(e: WebpLosslessError) -> Self

Converts to this type from the input type.
Source§

impl From<WebpLossyError> for Error

Source§

fn from(e: WebpLossyError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnsafeUnpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.