Trait IOErrorKind

Source
pub trait IOErrorKind: PartialEq + Sized {
    // Required methods
    fn new_unexpected_eof() -> Self;
    fn new_interrupted() -> Self;
    fn new_invalid_data() -> Self;

    // Provided methods
    fn is_unexpected_eof(&self) -> bool { ... }
    fn is_interrupted(&self) -> bool { ... }
    fn is_invalid_data(&self) -> bool { ... }
}
Expand description

The kind of an IOError

Required Methods§

Source

fn new_unexpected_eof() -> Self

Create a new UnexpectedEOF IOErrorKind

Source

fn new_interrupted() -> Self

Create a new Interrupted IOErrorKind

Source

fn new_invalid_data() -> Self

Create a new InvalidData IOErrorKind

Provided Methods§

Source

fn is_unexpected_eof(&self) -> bool

Check whether this IOErrorKind is of kind UnexpectedEOF

Source

fn is_interrupted(&self) -> bool

Check whether this IOErrorKind is of kind Interrupted

Source

fn is_invalid_data(&self) -> bool

Check whether this IOErrorKind is of kind InvalidData

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 IOErrorKind for ErrorKind

Implementors§