Very basic NetworkManager bindings

This commit is contained in:
Lucy 2022-01-11 15:23:09 -05:00
parent cff3029833
commit 91a7fc6da1
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
7 changed files with 97 additions and 1 deletions

View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
use crate::interface::device::bluetooth::BluetoothDeviceProxy;
use std::ops::Deref;
pub struct BluetoothDevice<'a>(BluetoothDeviceProxy<'a>);
impl<'a> Deref for BluetoothDevice<'a> {
type Target = BluetoothDeviceProxy<'a>;
fn deref(&self) -> &Self::Target {
&self.0
}
}

View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
use crate::interface::device::wired::WiredDeviceProxy;
use std::ops::Deref;
pub struct WiredDevice<'a>(WiredDeviceProxy<'a>);
impl<'a> Deref for WiredDevice<'a> {
type Target = WiredDeviceProxy<'a>;
fn deref(&self) -> &Self::Target {
&self.0
}
}

View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
use crate::interface::device::wireless::WirelessDeviceProxy;
use std::ops::Deref;
pub struct WirelessDevice<'a>(WirelessDeviceProxy<'a>);
impl<'a> Deref for WirelessDevice<'a> {
type Target = WirelessDeviceProxy<'a>;
fn deref(&self) -> &Self::Target {
&self.0
}
}