use zbus::proxy;
#[proxy(
interface = "org.freedesktop.Avahi.ServiceResolver",
default_service = "org.freedesktop.Avahi"
)]
pub trait ServiceResolver {
fn free(&self) -> zbus::Result<()>;
fn start(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn failure(&self, error: &str) -> zbus::Result<()>;
#[zbus(signal)]
fn found(
&self,
interface: i32,
protocol: i32,
name: &str,
type_: &str,
domain: &str,
host: &str,
aprotocol: i32,
address: &str,
port: u16,
txt: Vec<Vec<u8>>,
flags: u32,
) -> zbus::Result<()>;
}