balena-io-modules / network-manager

Rust NetworkManager bindings
Apache License 2.0
37 stars 30 forks source link

Expose connection type in ConnectionSettings #75

Closed majorz closed 7 years ago

majorz commented 7 years ago

The ConnectionSettings struct is missing the base type of the connection, which is provided by NetworkManager as a string: "802-3-ethernet", "802-11-wireless", "bluetooth", "vpn", "bridge", etc.

No defined enumeration exists in NetworkManager, so for now we can use the provided strings directly. Later on we can implement that as a Rust enum.

Since type is a reserved word in Rust we can either add the field as kind or type_.