pub struct IoError { /* private fields */ }
Expand description
Copyable & cloneable I/O error type represented by the error kind function.
Available only when both std
and derive
features are present.
Example
use amplify::{IoError, Error, Display, From};
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, From, Debug, Display, Error)]
enum Error {
#[from(std::io::Error)]
#[display(inner)]
Io(IoError),
}
Implementations§
Trait Implementations§
source§impl Error for IoError
impl Error for IoError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Ord for IoError
impl Ord for IoError
source§impl PartialEq<IoError> for IoError
impl PartialEq<IoError> for IoError
source§impl PartialOrd<IoError> for IoError
impl PartialOrd<IoError> for IoError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more