[][src]Enum mp4ameta::MediaType

pub enum MediaType {
    Movie,
    Normal,
    AudioBook,
    WhackedBookmark,
    MusicVideo,
    ShortFilm,
    TvShow,
    Booklet,
}

An enum describing the media type of a file stored in the stik atom.

Variants

Movie

A media type stored as 0 in the stik atom.

Normal

A media type stored as 1 in the stik atom.

AudioBook

A media type stored as 2 in the stik atom.

WhackedBookmark

A media type stored as 5 in the stik atom.

MusicVideo

A media type stored as 6 in the stik atom.

ShortFilm

A media type stored as 9 in the stik atom.

TvShow

A media type stored as 10 in the stik atom.

Booklet

A media type stored as 11 in the stik atom.

Implementations

impl MediaType[src]

pub fn value(&self) -> u8[src]

Returns the integer value corresponding to the media type.

Trait Implementations

impl Clone for MediaType[src]

impl Debug for MediaType[src]

impl PartialEq<MediaType> for MediaType[src]

impl StructuralPartialEq for MediaType[src]

impl TryFrom<u8> for MediaType[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.