dbus-settings-bindings/networkmanager/src/device.rs

25 lines
427 B
Rust
Raw Normal View History

2022-01-11 15:23:09 -05:00
// SPDX-License-Identifier: MPL-2.0
pub mod bluetooth;
pub mod wired;
pub mod wireless;
use crate::interface::device::DeviceProxy;
use std::ops::Deref;
pub struct Device<'a>(DeviceProxy<'a>);
impl<'a> Deref for Device<'a> {
type Target = DeviceProxy<'a>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> From<DeviceProxy<'a>> for Device<'a> {
fn from(device: DeviceProxy<'a>) -> Self {
Device(device)
}
}