wl-client 0.2.0

Safe client-side libwayland wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use {crate::utils::os_error::OsError, std::io};

#[test]
fn protocol_error() {
    let err = io::Error::from_raw_os_error(libc::EPROTO);
    {
        let kind = err.kind();
        let err: io::Error = kind.into();
        assert!(err.raw_os_error().is_none());
    }
    {
        let os: OsError = err.into();
        let err: io::Error = os.into();
        assert!(err.raw_os_error().is_some());
    }
}