Continue to work on bindings, including NetworkManager::activate_connection

This commit is contained in:
Lucy 2022-01-12 11:23:09 -05:00
parent 0168219a78
commit 6dd7eb9da4
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
8 changed files with 77 additions and 8 deletions

View file

@ -0,0 +1,20 @@
// SPDX-License-Identifier: MPL-2.0
use crate::interface::settings::connection::ConnectionSettingsProxy;
use std::ops::Deref;
pub struct Connection<'a>(ConnectionSettingsProxy<'a>);
impl<'a> Deref for Connection<'a> {
type Target = ConnectionSettingsProxy<'a>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<'a> From<ConnectionSettingsProxy<'a>> for Connection<'a> {
fn from(conn: ConnectionSettingsProxy<'a>) -> Self {
Connection(conn)
}
}