passcod_networkmanager/configs/
dhcp4.rs1use crate::dbus_api::DBusAccessor;
2use crate::errors::Error;
3use crate::gen::OrgFreedesktopNetworkManagerDHCP4Config;
4
5#[derive(Clone, Debug)]
6pub struct Dhcp4Config {
7 dbus_accessor: DBusAccessor,
8}
9
10impl Dhcp4Config {
11 pub(crate) fn new(dbus_accessor: DBusAccessor) -> Self {
12 Dhcp4Config { dbus_accessor }
13 }
14
15 pub fn options(
16 &self,
17 ) -> Result<
18 std::collections::HashMap<
19 String,
20 dbus::arg::Variant<std::boxed::Box<(dyn dbus::arg::RefArg + 'static)>>,
21 >,
22 Error,
23 > {
24 Ok(proxy!(self).options()?)
25 }
26}