// This code was autogenerated with dbus-codegen-rust use dbus as dbus; #[allow(unused_imports)] use dbus::arg; use dbus::blocking; pub trait ModemLocation { fn setup(&self, sources: u32, signal_location: bool) -> Result<(), dbus::Error>; fn get_location(&self) -> Result<::std::collections::HashMap>>, dbus::Error>; fn set_supl_server(&self, supl: &str) -> Result<(), dbus::Error>; fn inject_assistance_data(&self, data: Vec) -> Result<(), dbus::Error>; fn set_gps_refresh_rate(&self, rate: u32) -> Result<(), dbus::Error>; fn capabilities(&self) -> Result; fn supported_assistance_data(&self) -> Result; fn enabled(&self) -> Result; fn signals_location(&self) -> Result; fn location(&self) -> Result<::std::collections::HashMap>>, dbus::Error>; fn supl_server(&self) -> Result; fn assistance_data_servers(&self) -> Result, dbus::Error>; fn gps_refresh_rate(&self) -> Result; } impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref> ModemLocation for blocking::Proxy<'a, C> { fn setup(&self, sources: u32, signal_location: bool) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1.Modem.Location", "Setup", (sources, signal_location, )) } fn get_location(&self) -> Result<::std::collections::HashMap>>, dbus::Error> { self.method_call("org.freedesktop.ModemManager1.Modem.Location", "GetLocation", ()) .and_then(|r: (::std::collections::HashMap>>, )| Ok(r.0, )) } fn set_supl_server(&self, supl: &str) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1.Modem.Location", "SetSuplServer", (supl, )) } fn inject_assistance_data(&self, data: Vec) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1.Modem.Location", "InjectAssistanceData", (data, )) } fn set_gps_refresh_rate(&self, rate: u32) -> Result<(), dbus::Error> { self.method_call("org.freedesktop.ModemManager1.Modem.Location", "SetGpsRefreshRate", (rate, )) } fn capabilities(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "Capabilities") } fn supported_assistance_data(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "SupportedAssistanceData") } fn enabled(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "Enabled") } fn signals_location(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "SignalsLocation") } fn location(&self) -> Result<::std::collections::HashMap>>, dbus::Error> { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "Location") } fn supl_server(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "SuplServer") } fn assistance_data_servers(&self) -> Result, dbus::Error> { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "AssistanceDataServers") } fn gps_refresh_rate(&self) -> Result { ::get(&self, "org.freedesktop.ModemManager1.Modem.Location", "GpsRefreshRate") } }