1 2 3 4 5 6 7 8 9 10 11 12 13
#[derive(Debug)] pub enum Error { DBus(dbus::Error), UnsupportedMethod, UnsupportedDevice, UnsupportedType, } impl From<dbus::Error> for Error { fn from(error: dbus::Error) -> Self { Error::DBus(error) } }