use std::collections::HashMap;
use zbus::proxy;
use zvariant::OwnedValue;
#[proxy(
interface = "org.freedesktop.ModemManager1.Bearer",
default_service = "org.freedesktop.ModemManager1"
)]
pub trait MMBearer {
fn connect(&self) -> zbus::Result<()>;
fn disconnect(&self) -> zbus::Result<()>;
#[zbus(property)]
fn interface(&self) -> zbus::Result<String>;
#[zbus(property)]
fn connected(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn suspended(&self) -> zbus::Result<bool>;
#[zbus(property)]
fn ip4_config(&self) -> zbus::Result<HashMap<String, OwnedValue>>;
#[zbus(property)]
fn ip6_config(&self) -> zbus::Result<HashMap<String, OwnedValue>>;
#[zbus(property)]
fn stats(&self) -> zbus::Result<HashMap<String, OwnedValue>>;
}