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§
Sourcetype Kind: IOErrorKind
type Kind: IOErrorKind
The type of the kind of this IOError
Required Methods§
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.