[][src]Enum kg_diag::io::error::IoError

pub enum IoError {
    Io {
        kind: ErrorKind,
    },
    IoPath {
        kind: ErrorKind,
        op_type: OpType,
        file_type: FileType,
        path: PathBuf,
    },
    CurrentDirGet {
        kind: ErrorKind,
    },
    CurrentDirSet {
        kind: ErrorKind,
        path: PathBuf,
    },
    Utf8UnexpectedEof {
        offset: usize,
    },
    Utf8InvalidEncoding {
        offset: usize,
        len: usize,
    },
    Fmt,
}

Variants

Io

Fields of Io

kind: ErrorKind
IoPath

Fields of IoPath

kind: ErrorKindop_type: OpTypefile_type: FileTypepath: PathBuf
CurrentDirGet

Fields of CurrentDirGet

kind: ErrorKind
CurrentDirSet

Fields of CurrentDirSet

kind: ErrorKindpath: PathBuf
Utf8UnexpectedEof

Fields of Utf8UnexpectedEof

offset: usize
Utf8InvalidEncoding

Fields of Utf8InvalidEncoding

offset: usizelen: usize
Fmt

Methods

impl IoError[src]

pub fn kind(&self) -> ErrorKind[src]

pub fn file_not_found(path: PathBuf, op_type: OpType) -> IoError[src]

Trait Implementations

impl Detail for IoError[src]

fn severity(&self) -> Severity[src]

fn type_id(&self) -> TypeId[src]

fn as_fmt_debug(&self) -> &dyn Debug[src]

fn as_fmt_display(&self) -> &dyn Display[src]

impl Clone for IoError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Error> for IoError[src]

impl From<ErrorKind> for IoError[src]

impl From<Error> for IoError[src]

impl PartialEq<IoError> for IoError[src]

impl Eq for IoError[src]

impl Display for IoError[src]

impl Debug for IoError[src]

Auto Trait Implementations

impl Sync for IoError

impl Send for IoError

impl Unpin for IoError

impl RefUnwindSafe for IoError

impl UnwindSafe for IoError

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]