Enum immeta::Error [] [src]

pub enum Error {
    InvalidFormat(Cow<'static, str>),
    UnexpectedEndOfFile(Option<Cow<'static, str>>),
    Io(Error),
}

Library-specific error type which is returned by metadata loading operations.

Variants

Returned when metadata can't be recovered because image format is invalid.

This error can be caused by broken file or when trying to load an image with an incorrect metadata decoder, e.g. trying to load PNG metadata from JPEG.

Returned when metadata can't be recovered because of the sudden end of the image file.

Usually this error is caused by broken files, but it may also be cause by applying loose formats (like JPEG) to a different image type.

Returned when an I/O error occurs when reading an input stream.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

[src]

Performs the conversion.