pub struct LinuxInterfaceDiscovery { /* private fields */ }
Expand description
Linux-specific network interface discovery using netlink
Implementations§
Source§impl LinuxInterfaceDiscovery
impl LinuxInterfaceDiscovery
Sourcepub fn set_interface_config(&mut self, config: InterfaceConfig)
pub fn set_interface_config(&mut self, config: InterfaceConfig)
Set interface configuration
Sourcepub fn initialize_netlink_socket(&mut self) -> Result<(), LinuxNetworkError>
pub fn initialize_netlink_socket(&mut self) -> Result<(), LinuxNetworkError>
Initialize netlink socket for interface monitoring
Sourcepub fn check_network_changes(&mut self) -> Result<bool, LinuxNetworkError>
pub fn check_network_changes(&mut self) -> Result<bool, LinuxNetworkError>
Check for netlink messages indicating network changes
Trait Implementations§
Source§impl Drop for LinuxInterfaceDiscovery
impl Drop for LinuxInterfaceDiscovery
Source§impl NetworkInterfaceDiscovery for LinuxInterfaceDiscovery
impl NetworkInterfaceDiscovery for LinuxInterfaceDiscovery
fn start_scan(&mut self) -> Result<(), String>
fn check_scan_complete(&mut self) -> Option<Vec<NetworkInterface>>
Auto Trait Implementations§
impl Freeze for LinuxInterfaceDiscovery
impl RefUnwindSafe for LinuxInterfaceDiscovery
impl Send for LinuxInterfaceDiscovery
impl Sync for LinuxInterfaceDiscovery
impl Unpin for LinuxInterfaceDiscovery
impl UnwindSafe for LinuxInterfaceDiscovery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more