[][src]Struct qt_gui::q_image_reader::ImageReaderError

#[repr(transparent)]
pub struct ImageReaderError(_);

This enum describes the different types of errors that can occur when reading images with QImageReader.

C++ enum: QImageReader::ImageReaderError.

C++ documentation:

This enum describes the different types of errors that can occur when reading images with QImageReader.

Methods

impl ImageReaderError[src]

pub fn to_int(&self) -> c_int[src]

impl ImageReaderError[src]

pub const UnknownError: ImageReaderError[src]

An unknown error occurred. If you get this value after calling read(), it is most likely caused by a bug in QImageReader. (C++ enum variant: UnknownError = 0)

pub const FileNotFoundError: ImageReaderError[src]

QImageReader was used with a file name, but not file was found with that name. This can also happen if the file name contained no extension, and the file with the correct extension is not supported by Qt. (C++ enum variant: FileNotFoundError = 1)

pub const DeviceError: ImageReaderError[src]

QImageReader encountered a device error when reading the image. You can consult your particular device for more details on what went wrong. (C++ enum variant: DeviceError = 2)

pub const UnsupportedFormatError: ImageReaderError[src]

Qt does not support the requested image format. (C++ enum variant: UnsupportedFormatError = 3)

pub const InvalidDataError: ImageReaderError[src]

The image data was invalid, and QImageReader was unable to read an image from it. The can happen if the image file is damaged. (C++ enum variant: InvalidDataError = 4)

Trait Implementations

impl Clone for ImageReaderError[src]

impl Copy for ImageReaderError[src]

impl Debug for ImageReaderError[src]

impl Eq for ImageReaderError[src]

impl From<ImageReaderError> for c_int[src]

impl From<i32> for ImageReaderError[src]

impl PartialEq<ImageReaderError> for ImageReaderError[src]

impl StructuralEq for ImageReaderError[src]

impl StructuralPartialEq for ImageReaderError[src]

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for 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.