Struct linux_info::network::network_manager::Device
source · [−]pub struct Device { /* private fields */ }Implementations
sourceimpl Device
impl Device
sourcepub fn path(&self) -> Result<String, Error>
pub fn path(&self) -> Result<String, Error>
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.
sourcepub fn interface(&self) -> Result<String, Error>
pub fn interface(&self) -> Result<String, Error>
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.
sourcepub fn driver(&self) -> Result<String, Error>
pub fn driver(&self) -> Result<String, Error>
The driver handling the device. Non-UTF-8 sequences are backslash escaped. Use g_strcompress() to revert.
sourcepub fn state(&self) -> Result<DeviceState, Error>
pub fn state(&self) -> Result<DeviceState, Error>
The current state of the device.
sourcepub fn kind(&self) -> Result<DeviceKind, Error>
pub fn kind(&self) -> Result<DeviceKind, Error>
The general type of the network device; ie Ethernet, Wi-Fi, etc.
sourcepub fn ipv4_config(&self) -> Result<Ipv4Config, Error>
pub fn ipv4_config(&self) -> Result<Ipv4Config, Error>
Ipv4 Configuration of the device. Only valid when the device is in DeviceState::Activated
Auto Trait Implementations
impl !RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl !UnwindSafe for Device
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more