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§
Sourcefn new_unexpected_eof() -> Self
fn new_unexpected_eof() -> Self
Create a new UnexpectedEOF
IOErrorKind
Sourcefn new_interrupted() -> Self
fn new_interrupted() -> Self
Create a new Interrupted
IOErrorKind
Sourcefn new_invalid_data() -> Self
fn new_invalid_data() -> Self
Create a new InvalidData
IOErrorKind
Provided Methods§
Sourcefn is_unexpected_eof(&self) -> bool
fn is_unexpected_eof(&self) -> bool
Check whether this IOErrorKind
is of kind UnexpectedEOF
Sourcefn is_interrupted(&self) -> bool
fn is_interrupted(&self) -> bool
Check whether this IOErrorKind
is of kind Interrupted
Sourcefn is_invalid_data(&self) -> bool
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.