use std::collections::HashMap;
use zbus::proxy;
use zbus::zvariant::{ObjectPath, OwnedObjectPath, Value};
#[proxy(
interface = "org.freedesktop.NetworkManager.Device.WifiP2P",
default_service = "org.freedesktop.NetworkManager"
)]
pub trait WifiP2P {
fn start_find(&self, options: HashMap<&str, &Value<'_>>) -> zbus::Result<()>;
fn stop_find(&self) -> zbus::Result<()>;
#[zbus(signal)]
fn peer_added(&self, peer: ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(signal)]
fn peer_removed(&self, peer: ObjectPath<'_>) -> zbus::Result<()>;
#[zbus(property)]
fn hw_address(&self) -> zbus::Result<String>;
#[zbus(property)]
fn peers(&self) -> zbus::Result<Vec<OwnedObjectPath>>;
}