Enum EncodingError

#[non_exhaustive]
pub enum EncodingError

Error that can occur during encoding.

Variants

IoError(Error)

An IO error occurred.

InvalidDimensions

The image dimensions are not allowed by the WebP format.

Trait Implementations

impl Debug for EncodingError

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

impl Display for EncodingError

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

impl Error for EncodingError

fn source(&self) -> Option<&dyn Error + 'static>

impl From<Error> for EncodingError

fn from(err: Error) -> EncodingError

Auto Trait Implementations

impl !RefUnwindSafe for EncodingError

impl !UnwindSafe for EncodingError

impl Freeze for EncodingError

impl Send for EncodingError

impl Sync for EncodingError

impl Unpin for EncodingError

impl UnsafeUnpin for EncodingError

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for EncodingError

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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