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,24 @@
// 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)
}
}