#![allow(warnings)]
use zbus::proxy;
#[proxy(
interface = "org.freedesktop.machine1.Machine",
default_service = "org.freedesktop.machine1"
)]
pub trait Machine {
fn bind_mount(
&self,
source: &str,
destination: &str,
read_only: bool,
mkdir: bool,
) -> zbus::Result<()>;
fn copy_from(&self, source: &str, destination: &str) -> zbus::Result<()>;
fn copy_from_with_flags(&self, source: &str, destination: &str, flags: u64)
-> zbus::Result<()>;
fn copy_to(&self, source: &str, destination: &str) -> zbus::Result<()>;
fn copy_to_with_flags(&self, source: &str, destination: &str, flags: u64) -> zbus::Result<()>;
fn get_addresses(&self) -> zbus::Result<Vec<(i32, Vec<u8>)>>;
#[zbus(name = "GetOSRelease")]
fn get_osrelease(&self) -> zbus::Result<std::collections::HashMap<String, String>>;
#[zbus(name = "GetUIDShift")]
fn get_uidshift(&self) -> zbus::Result<u32>;
fn kill(&self, who: &str, signal: i32) -> zbus::Result<()>;
fn open_login(&self) -> zbus::Result<(zbus::zvariant::OwnedFd, String)>;
#[zbus(name = "OpenPTY")]
fn open_pty(&self) -> zbus::Result<(zbus::zvariant::OwnedFd, String)>;
fn open_root_directory(&self) -> zbus::Result<zbus::zvariant::OwnedFd>;
fn open_shell(
&self,
user: &str,
path: &str,
args: &[&str],
environment: &[&str],
) -> zbus::Result<(zbus::zvariant::OwnedFd, String)>;
fn terminate(&self) -> zbus::Result<()>;
#[zbus(property)]
fn class(&self) -> zbus::Result<String>;
#[zbus(property)]
fn id(&self) -> zbus::Result<Vec<u8>>;
#[zbus(property)]
fn leader(&self) -> zbus::Result<u32>;
#[zbus(property)]
fn name(&self) -> zbus::Result<String>;
#[zbus(property)]
fn network_interfaces(&self) -> zbus::Result<Vec<i32>>;
#[zbus(property)]
fn root_directory(&self) -> zbus::Result<String>;
#[zbus(property)]
fn service(&self) -> zbus::Result<String>;
#[zbus(property)]
fn state(&self) -> zbus::Result<String>;
#[zbus(property)]
fn timestamp(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn timestamp_monotonic(&self) -> zbus::Result<u64>;
#[zbus(property)]
fn unit(&self) -> zbus::Result<String>;
}