Enum EncodingError

#[non_exhaustive]
pub enum EncodingError

Encoding error.

Variants

FrameBufferTooSmallForDimensions

Frame buffer is too small for the declared dimensions.

OutOfMemory

Failed to internally allocate a buffer of sufficient size.

WriterNotFound

Expected a writer but none found.

Format(EncodingFormatError)

Returned if the to image is not encodable as a gif.

Io(Error)

Wraps std::io::Error.

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<EncodingFormatError> for EncodingError

fn from(err: EncodingFormatError) -> Self

impl From<Error> for EncodingError

fn from(err: Error) -> Self

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>