Skip to main content

Status

Enum Status 

Source
#[repr(C)]
pub enum Status {
Show 104 variants Ok = 0, BadArg = 1, Invalid = 2, Unsupported = 3, Eof = 4, Io = 5, Oom = 6, A1lxEssential = 7, A1opNoEssential = 8, AlacBadMagicCookieSize = 9, AlacFlagsNonzero = 10, Av1cMissing = 11, BitReaderError = 12, BoxBadSize = 13, BoxBadWideSize = 14, CheckParserStateErr = 15, ColrBadQuantity = 16, ColrBadSize = 17, ColrBadType = 18, ColrReservedNonzero = 19, ConstructionMethod = 20, CttsBadSize = 21, CttsBadVersion = 22, DflaBadMetadataBlockSize = 23, DflaFlagsNonzero = 24, DflaMissingMetadata = 25, DflaStreamInfoBadSize = 26, DflaStreamInfoNotFirst = 27, DopsChannelMappingWriteErr = 28, DopsOpusHeadWriteErr = 29, ElstBadVersion = 30, EsdsBadAudioSampleEntry = 31, EsdsBadDescriptor = 32, EsdsDecSpecificIntoTagQuantity = 33, FtypBadSize = 34, FtypNotFirst = 35, HdlrNameNoNul = 36, HdlrNameNotUtf8 = 37, HdlrNotFirst = 38, HdlrPredefinedNonzero = 39, HdlrReservedNonzero = 40, HdlrTypeNotPict = 41, HdlrUnsupportedVersion = 42, HdrlBadQuantity = 43, IdatBadQuantity = 44, IdatMissing = 45, IinfBadChild = 46, IinfBadQuantity = 47, IlocBadConstructionMethod = 48, IlocBadExtent = 49, IlocBadExtentCount = 50, IlocBadFieldSize = 51, IlocBadQuantity = 52, IlocBadSize = 53, IlocDuplicateItemId = 54, IlocNotFound = 55, IlocOffsetOverflow = 56, ImageItemType = 57, InfeFlagsNonzero = 58, InvalidUtf8 = 59, IpcoIndexOverflow = 60, IpmaBadIndex = 61, IpmaBadItemOrder = 62, IpmaBadQuantity = 63, IpmaBadVersion = 64, IpmaDuplicateItemId = 65, IpmaFlagsNonzero = 66, IpmaIndexZeroNoEssential = 67, IpmaTooBig = 68, IpmaTooSmall = 69, IprpBadChild = 70, IprpBadQuantity = 71, IprpConflict = 72, IrefBadQuantity = 73, IrefRecursion = 74, IspeMissing = 75, ItemTypeMissing = 76, LselNoEssential = 77, MdhdBadTimescale = 78, MdhdBadVersion = 79, MehdBadVersion = 80, MetaBadQuantity = 81, MissingAvifOrAvisBrand = 82, MissingMif1Brand = 83, MoovBadQuantity = 84, MoovMissing = 85, MultipleAlpha = 86, MvhdBadTimescale = 87, MvhdBadVersion = 88, NoImage = 89, PitmBadQuantity = 90, PitmMissing = 91, PitmNotFound = 92, PixiBadChannelCount = 93, PixiMissing = 94, PsshSizeOverflow = 95, ReadBufErr = 96, SchiQuantity = 97, StsdBadAudioSampleEntry = 98, StsdBadVideoSampleEntry = 99, TkhdBadVersion = 100, TxformBeforeIspe = 101, TxformNoEssential = 102, TxformOrder = 103,
}
Expand description

The return value to the C API Any detail that needs to be communicated to the caller must be encoded here since the Error type’s associated data is part of the FFI.

Variants§

§

Ok = 0

§

BadArg = 1

§

Invalid = 2

§

Unsupported = 3

§

Eof = 4

§

Io = 5

§

Oom = 6

§

A1lxEssential = 7

§

A1opNoEssential = 8

§

AlacBadMagicCookieSize = 9

§

AlacFlagsNonzero = 10

§

Av1cMissing = 11

§

BitReaderError = 12

§

BoxBadSize = 13

§

BoxBadWideSize = 14

§

CheckParserStateErr = 15

§

ColrBadQuantity = 16

§

ColrBadSize = 17

§

ColrBadType = 18

§

ColrReservedNonzero = 19

§

ConstructionMethod = 20

§

CttsBadSize = 21

§

CttsBadVersion = 22

§

DflaBadMetadataBlockSize = 23

§

DflaFlagsNonzero = 24

§

DflaMissingMetadata = 25

§

DflaStreamInfoBadSize = 26

§

DflaStreamInfoNotFirst = 27

§

DopsChannelMappingWriteErr = 28

§

DopsOpusHeadWriteErr = 29

§

ElstBadVersion = 30

§

EsdsBadAudioSampleEntry = 31

§

EsdsBadDescriptor = 32

§

EsdsDecSpecificIntoTagQuantity = 33

§

FtypBadSize = 34

§

FtypNotFirst = 35

§

HdlrNameNoNul = 36

§

HdlrNameNotUtf8 = 37

§

HdlrNotFirst = 38

§

HdlrPredefinedNonzero = 39

§

HdlrReservedNonzero = 40

§

HdlrTypeNotPict = 41

§

HdlrUnsupportedVersion = 42

§

HdrlBadQuantity = 43

§

IdatBadQuantity = 44

§

IdatMissing = 45

§

IinfBadChild = 46

§

IinfBadQuantity = 47

§

IlocBadConstructionMethod = 48

§

IlocBadExtent = 49

§

IlocBadExtentCount = 50

§

IlocBadFieldSize = 51

§

IlocBadQuantity = 52

§

IlocBadSize = 53

§

IlocDuplicateItemId = 54

§

IlocNotFound = 55

§

IlocOffsetOverflow = 56

§

ImageItemType = 57

§

InfeFlagsNonzero = 58

§

InvalidUtf8 = 59

§

IpcoIndexOverflow = 60

§

IpmaBadIndex = 61

§

IpmaBadItemOrder = 62

§

IpmaBadQuantity = 63

§

IpmaBadVersion = 64

§

IpmaDuplicateItemId = 65

§

IpmaFlagsNonzero = 66

§

IpmaIndexZeroNoEssential = 67

§

IpmaTooBig = 68

§

IpmaTooSmall = 69

§

IprpBadChild = 70

§

IprpBadQuantity = 71

§

IprpConflict = 72

§

IrefBadQuantity = 73

§

IrefRecursion = 74

§

IspeMissing = 75

§

ItemTypeMissing = 76

§

LselNoEssential = 77

§

MdhdBadTimescale = 78

§

MdhdBadVersion = 79

§

MehdBadVersion = 80

§

MetaBadQuantity = 81

§

MissingAvifOrAvisBrand = 82

§

MissingMif1Brand = 83

§

MoovBadQuantity = 84

§

MoovMissing = 85

§

MultipleAlpha = 86

§

MvhdBadTimescale = 87

§

MvhdBadVersion = 88

§

NoImage = 89

§

PitmBadQuantity = 90

§

PitmMissing = 91

§

PitmNotFound = 92

§

PixiBadChannelCount = 93

§

PixiMissing = 94

§

PsshSizeOverflow = 95

§

ReadBufErr = 96

§

SchiQuantity = 97

§

StsdBadAudioSampleEntry = 98

§

StsdBadVideoSampleEntry = 99

§

TkhdBadVersion = 100

§

TxformBeforeIspe = 101

§

TxformNoEssential = 102

§

TxformOrder = 103

Trait Implementations§

Source§

impl Clone for Status

Source§

fn clone(&self) -> Status

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 Copy for Status

Source§

impl Debug for Status

Source§

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

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

impl Eq for Status

Source§

impl From<Error> for Status

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Status

Source§

fn from(_: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Result<(), Status>> for Status

Source§

fn from(result: Result<(), Status>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Result<T, Error>> for Status

Source§

fn from(result: Result<T>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Status> for Result<T>

Source§

fn from(parse_status: Status) -> Self

A convenience method to enable shortcuts like

Status::MissingAvifOrAvisBrand.into();

instead of

Err(Error::from(Status::MissingAvifOrAvisBrand));

Note that Status::Ok can’t be supported this way and will panic.

Source§

impl From<Status> for Error

For convenience of creating an error for an unsupported feature which we want to communicate the specific feature back to the C API caller

Source§

fn from(parse_status: Status) -> Self

Converts to this type from the input type.
Source§

impl From<Status> for &str

Source§

fn from(status: Status) -> Self

Converts to this type from the input type.
Source§

impl From<TryReserveError> for Status

Source§

fn from(_: TryReserveError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Status

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Status

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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