devela/sys/io/
impls.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// devela::sys::io::impls

use crate::{ExtError, IoError, IoErrorKind};

impl ExtError for IoError {
    type Kind = IoErrorKind;

    fn error_eq(&self, other: &Self) -> bool {
        self.error_kind() == other.error_kind()
    }

    fn error_kind(&self) -> Self::Kind {
        self.kind()
    }
}