pub struct Device { /* private fields */ }

Implementations

The path of the device as exposed by the udev property ID_PATH.
Note that non-UTF-8 characters are backslash escaped. Use g_strcompress() to obtain the true (non-UTF-8) string.

The name of the device’s control (and often data) interface. Note that non UTF-8 characters are backslash escaped, so the resulting name may be longer then 15 characters. Use g_strcompress() to revert the escaping.

The driver handling the device. Non-UTF-8 sequences are backslash escaped. Use g_strcompress() to revert.

The current state of the device.

The general type of the network device; ie Ethernet, Wi-Fi, etc.

Ipv4 Configuration of the device. Only valid when the device is in DeviceState::Activated

The access point name the modem is connected to. Blank if disconnected.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.