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

21 lines
466 B
Rust
Raw Normal View History

2022-01-11 15:23:09 -05:00
// 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
}
}
2022-01-11 16:41:10 -05:00
impl<'a> From<BluetoothDeviceProxy<'a>> for BluetoothDevice<'a> {
fn from(device: BluetoothDeviceProxy<'a>) -> Self {
BluetoothDevice(device)
}
}