Continue to work on bindings, including NetworkManager::activate_connection
This commit is contained in:
parent
0168219a78
commit
6dd7eb9da4
8 changed files with 77 additions and 8 deletions
20
networkmanager/src/settings/connection.rs
Normal file
20
networkmanager/src/settings/connection.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue