// This code was autogenerated with dbus-codegen-rust use dbus as dbus; #[allow(unused_imports)] use dbus::arg; use dbus::blocking; pub trait ModemManager { fn scan_devices(&self) -> Result<(), dbus::Error>; fn set_logging(&self, level: &str) -> Result<(), dbus::Error>; fn report_kernel_event(&self, properties: arg::PropMap) -> Result<(), dbus::Error>; fn inhibit_device(&self, uid: &str, inhibit: bool) -> Result<(), dbus::Error>; fn version(&self) -> Result; } impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref> ModemManager for blocking::Proxy<'a, C> { fn scan_devices(&self) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1", "ScanDevices", ()) } fn set_logging(&self, level: &str) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1", "SetLogging", (level, )) } fn report_kernel_event(&self, properties: arg::PropMap) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1", "ReportKernelEvent", (properties, )) } fn inhibit_device(&self, uid: &str, inhibit: bool) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1", "InhibitDevice", (uid, inhibit, )) } fn version(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1", "Version") } }