Enum XmpError

Source
#[repr(i32)]
pub enum XmpError {
Show 37 variants Unknown = 0, TBD = -1, Unavailable = -2, BadObject = -3, BadParam = -4, BadValue = -5, AssertFailure = -6, EnforceFailure = -7, Unimplemented = -8, InternalFailure = -9, Deprecated = -10, ExternalFailure = -11, UserAbort = -12, StdException = -13, UnknownException = -14, NoMemory = -15, BadSchema = -101, BadXPath = -102, BadOptions = -103, BadIndex = -104, BadIterPosition = -105, BadParse = -106, BadSerialize = -107, BadFileFormat = -108, NoFileHandler = -109, TooLargeForJPEG = -110, BadXML = -201, BadRDF = -202, BadXMP = -203, EmptyIterator = -204, BadUnicode = -205, BadTIFF = -206, BadJPEG = -207, BadPSD = -208, BadPSIR = -209, BadIPTC = -210, BadMPEG = -211,
}
Expand description

XMP errors.

Variants§

§

Unknown = 0

Generic unknown error.

§

TBD = -1

Generic undefined error.

§

Unavailable = -2

Generic unavailable error.

§

BadObject = -3

Generic bad object error.

§

BadParam = -4

Generic bad parameter error.

§

BadValue = -5

Generic bad value error.

§

AssertFailure = -6

Generic assertion failure.

§

EnforceFailure = -7

Generic enforcement failure.

§

Unimplemented = -8

Generic unimplemented error.

§

InternalFailure = -9

Generic internal failure.

§

Deprecated = -10

Generic deprecated error.

§

ExternalFailure = -11

Generic external failure.

§

UserAbort = -12

Generic user abort error.

§

StdException = -13

Generic standard exception.

§

UnknownException = -14

Generic unknown exception.

§

NoMemory = -15

Generic out-of-memory error.

§

BadSchema = -101

Bad schema parameter.

§

BadXPath = -102

Bad XPath parameter.

§

BadOptions = -103

Bad options parameter.

§

BadIndex = -104

Bad index parameter.

§

BadIterPosition = -105

Bad iteration position.

§

BadParse = -106

XML parsing error.

§

BadSerialize = -107

Serialization error.

§

BadFileFormat = -108

File format error.

§

NoFileHandler = -109

No file handler found for format.

§

TooLargeForJPEG = -110

Data too large for JPEG file format.

§

BadXML = -201

XML format error.

§

BadRDF = -202

RDF format error.

§

BadXMP = -203

XMP format error.

§

EmptyIterator = -204

Empty iterator.

§

BadUnicode = -205

Unicode error.

§

BadTIFF = -206

TIFF format error.

§

BadJPEG = -207

JPEG format error.

§

BadPSD = -208

PSD format error.

§

BadPSIR = -209

PSIR format error.

§

BadIPTC = -210

IPTC format error.

§

BadMPEG = -211

MPEG format error.

Trait Implementations§

Source§

impl Clone for XmpError

Source§

fn clone(&self) -> XmpError

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for XmpError

Source§

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

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

impl PartialEq for XmpError

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for XmpError

Source§

impl Eq for XmpError

Source§

impl StructuralPartialEq for XmpError

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