Struct ketos::io::IoError [] [src]

pub struct IoError {
    pub err: Error,
    pub path: PathBuf,
    pub mode: IoMode,
}

Describes the cause of an io::Error.

Fields

err: Error

Error value

path: PathBuf

Path to file whose operation produced the error

mode: IoMode

I/O mode that produced the error

Methods

impl IoError
[src]

fn new(mode: IoMode, path: &Path, err: Error) -> IoError

Creates a new IoError.

Trait Implementations

impl Debug for IoError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for IoError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.