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

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

Variants

Io

Fields of Io

kind: ErrorKindmessage: String
IoPath

Fields of IoPath

kind: ErrorKindop_type: OpTypefile_type: FileTypepath: PathBuf
CurrentDirGet

Fields of CurrentDirGet

kind: ErrorKind
CurrentDirSet

Fields of CurrentDirSet

kind: ErrorKindpath: PathBuf
Utf8InvalidEncoding

Fields of Utf8InvalidEncoding

offset: usizelen: usize
Utf8UnexpectedEof

Fields of Utf8UnexpectedEof

offset: usize
Fmt

Methods

impl IoErrorDetail[src]

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

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

Trait Implementations

impl Detail for IoErrorDetail[src]

impl Eq for IoErrorDetail[src]

impl Clone for IoErrorDetail[src]

impl PartialEq<IoErrorDetail> for IoErrorDetail[src]

impl From<Error> for IoErrorDetail[src]

impl From<ErrorKind> for IoErrorDetail[src]

impl From<Error> for IoErrorDetail[src]

impl From<IoErrorDetail> for ParseErrorDetail[src]

impl Display for IoErrorDetail[src]

impl Debug for IoErrorDetail[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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]