Enum ErrorKind

Source
pub enum ErrorKind {
Show 14 variants AtomNotFound(Fourcc), DescriptorNotFound(u8), NoFtyp, InvalidAtomSize, SizeMismatch, AtomSizeOutOfBounds, InvalidSampleTable, UnknownChannelConfig(u8), UnknownMediaType(u8), UnknownSampleRate(u8), UnknownVersion(u8), Utf8StringDecoding, Utf16StringDecoding, Io(Error),
}
Expand description

Kinds of errors that may occur while performing metadata operations.

Variants§

§

AtomNotFound(Fourcc)

An atom could not be found. Contains the atom’s identifier.

§

DescriptorNotFound(u8)

A descriptor could not be found. Contains the descriptor’s tag.

§

NoFtyp

No filetype (ftyp) atom, which indicates na MPEG-4 file, could be found.

§

InvalidAtomSize

The size of an atom is smaller than its header, or otherwise unsound.

§

SizeMismatch

The content of an atom suggests another length than its header.

§

AtomSizeOutOfBounds

The header of an atom specifies a size that either exceeds the parent atom or the file.

§

InvalidSampleTable

The sample table atom (stbl) contains inconsistent data.

§

UnknownChannelConfig(u8)

The ChannelConfig code is unknown. Contains the unknown code.

§

UnknownMediaType(u8)

The MediaType code is unknown. Contains the unknown code.

§

UnknownSampleRate(u8)

The SampleRate index is unknown. Contains the unknown index.

§

UnknownVersion(u8)

Either the version byte of an atom or a descriptor is unknown. Contains the unknown version.

§

Utf8StringDecoding

An invalid utf-8 string was found.

§

Utf16StringDecoding

An invalid utf-16 string was found.

§

Io(Error)

An IO error has occurred.

Trait Implementations§

Source§

impl Debug for ErrorKind

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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> 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, 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.