[][src]Struct qt_core::q_file_device::FileError

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

This enum describes the errors that may be returned by the error() function.

C++ enum: QFileDevice::FileError.

C++ documentation:

This enum describes the errors that may be returned by the error() function.

Methods

impl FileError[src]

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

impl FileError[src]

pub const NoError: FileError[src]

No error occurred. (C++ enum variant: NoError = 0)

pub const ReadError: FileError[src]

An error occurred when reading from the file. (C++ enum variant: ReadError = 1)

pub const WriteError: FileError[src]

An error occurred when writing to the file. (C++ enum variant: WriteError = 2)

pub const FatalError: FileError[src]

A fatal error occurred. (C++ enum variant: FatalError = 3)

pub const ResourceError: FileError[src]

Out of resources (e.g., too many open files, out of memory, etc.) (C++ enum variant: ResourceError = 4)

pub const OpenError: FileError[src]

The file could not be opened. (C++ enum variant: OpenError = 5)

pub const AbortError: FileError[src]

The operation was aborted. (C++ enum variant: AbortError = 6)

pub const TimeOutError: FileError[src]

A timeout occurred. (C++ enum variant: TimeOutError = 7)

pub const UnspecifiedError: FileError[src]

An unspecified error occurred. (C++ enum variant: UnspecifiedError = 8)

pub const RemoveError: FileError[src]

The file could not be removed. (C++ enum variant: RemoveError = 9)

pub const RenameError: FileError[src]

The file could not be renamed. (C++ enum variant: RenameError = 10)

pub const PositionError: FileError[src]

The position in the file could not be changed. (C++ enum variant: PositionError = 11)

pub const ResizeError: FileError[src]

The file could not be resized. (C++ enum variant: ResizeError = 12)

pub const PermissionsError: FileError[src]

The file could not be accessed. (C++ enum variant: PermissionsError = 13)

pub const CopyError: FileError[src]

The file could not be copied. (C++ enum variant: CopyError = 14)

Trait Implementations

impl Clone for FileError[src]

impl Copy for FileError[src]

impl Debug for FileError[src]

impl Eq for FileError[src]

impl From<FileError> for c_int[src]

impl From<i32> for FileError[src]

impl PartialEq<FileError> for FileError[src]

impl StructuralEq for FileError[src]

impl StructuralPartialEq for FileError[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.