Trait IOError

Source
pub trait IOError: Error {
    type Kind: IOErrorKind;

    // Required methods
    fn new<M>(kind: Self::Kind, msg: M) -> Self
       where M: Display;
    fn kind(&self) -> Self::Kind;
}
Expand description

Base IO error type

Required Associated Types§

Source

type Kind: IOErrorKind

The type of the kind of this IOError

Required Methods§

Source

fn new<M>(kind: Self::Kind, msg: M) -> Self
where M: Display,

Construct a new IOError from an IOErrorKind and a msg

Source

fn kind(&self) -> Self::Kind

Get the kind of this IOError

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IOError for Error

Source§

type Kind = ErrorKind

Source§

fn new<M>(kind: Self::Kind, msg: M) -> Self
where M: Display,

Source§

fn kind(&self) -> Self::Kind

Implementors§