interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / getrandom / src / error_impls.rs

15 lines · 335 bytes Raw Blame History
1extern crate std;
2
3use crate::Error;
4use std::io;
5
6impl From<Error> for io::Error {
7 fn from(err: Error) -> Self {
8 match err.raw_os_error() {
9 Some(errno) => io::Error::from_raw_os_error(errno),
10 None => io::Error::new(io::ErrorKind::Other, err),
11 }
12 }
13}
14
15impl std::error::Error for Error {}