1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#![allow(missing_docs)] #[cfg(all(unix, not(target_os = "macos")))] use dbus; use std::num; error_chain!{ types { Error, ErrorKind, ResultExt, Result; } foreign_links { Dbus(dbus::Error) #[cfg(all(unix, not(target_os = "macos")))] ; Parse(num::ParseIntError); } errors { SpecVersion(version:String) { description("unknown spec version") display("The running server supplied an unknown version: {}", version) } } }