Lines Matching refs:Error
15 pub struct Error(i32); struct
16 pub type Result<T> = result::Result<T, Error>;
18 impl Error { implementation
20 pub fn new(e: i32) -> Error { in new() argument
21 Error(e) in new()
28 pub fn last() -> Error { in last()
29 Error(io::Error::last_os_error().raw_os_error().unwrap()) in last()
38 impl From<io::Error> for Error { implementation
39 fn from(e: io::Error) -> Self { in from()
40 Error::new(e.raw_os_error().unwrap_or_default()) in from()
44 impl From<Error> for io::Error { implementation
45 fn from(e: Error) -> io::Error { in from() argument
46 io::Error::from_raw_os_error(e.0) in from()
50 impl std::error::Error for Error {} implementation
52 impl Display for Error { implementation
54 Into::<io::Error>::into(*self).fmt(f) in fmt()
60 Err(Error::last()) in errno_result()