use dbus as dbus;
#[allow(unused_imports)]
use dbus::arg;
use dbus::blocking;
pub trait Checkpoint {
fn devices(&self) -> Result<Vec<dbus::Path<'static>>, dbus::Error>;
fn created(&self) -> Result<i64, dbus::Error>;
fn rollback_timeout(&self) -> Result<u32, dbus::Error>;
}
impl<'a, T: blocking::BlockingSender, C: ::std::ops::Deref<Target=T>> Checkpoint for blocking::Proxy<'a, C> {
fn devices(&self) -> Result<Vec<dbus::Path<'static>>, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Checkpoint", "Devices")
}
fn created(&self) -> Result<i64, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Checkpoint", "Created")
}
fn rollback_timeout(&self) -> Result<u32, dbus::Error> {
<Self as blocking::stdintf::org_freedesktop_dbus::Properties>::get(&self, "org.freedesktop.NetworkManager.Checkpoint", "RollbackTimeout")
}
}