use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.freedesktop.UDisks2.Job")]
trait Job {
fn cancel(
&self,
options: std::collections::HashMap<&str, zbus::zvariant::Value<'_>>,
) -> zbus::Result<()>;
#[dbus_proxy(signal)]
fn completed(&self, success: bool, message: &str) -> zbus::Result<()>;
#[dbus_proxy(property)]
fn bytes(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn cancelable(&self) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn expected_end_time(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn objects(&self) -> zbus::Result<Vec<zbus::zvariant::OwnedObjectPath>>;
#[dbus_proxy(property)]
fn operation(&self) -> zbus::Result<String>;
#[dbus_proxy(property)]
fn progress(&self) -> zbus::Result<f64>;
#[dbus_proxy(property)]
fn progress_valid(&self) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn rate(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn start_time(&self) -> zbus::Result<u64>;
#[dbus_proxy(property)]
fn started_by_uid(&self) -> zbus::Result<u32>;
}