/// Handle receiving a netstack interface changed event.
Handle receiving a netstack interface changed event.
Handle receiving a netstack interface changed event .
async fn handle_interface_changed_event(
        netcfg: &mut NetCfg<'_>,
        dns_watchers: &mut DnsServerWatchers<'_>,
        online: Option<bool>,
        addresses: Option<Vec<fnet_interfaces::Address>>,
    ) -> Result<(), errors::Error> {
        let event = fnet_interfaces::Event::Changed(fnet_interfaces::Properties {
            id: Some(INTERFACE_ID),
            name: None,
            device_class: None,
            online,
            addresses,
            has_default_ipv4_route: None,
            has_default_ipv6_route: None,
            ..fnet_interfaces::Properties::EMPTY
        });
        netcfg.handle_interface_watcher_event(event, dns_watchers).await
    }
async fn handle_interface_changed_event ( netcfg : & mut NetCfg < ' _ > , dns_watchers : & mut DnsServerWatchers < ' _ > , online : Option < bool > , addresses : Option < Vec < fnet_interfaces :: Address > > , ) -> Result < ( ) , errors :: Error > { let event = fnet_interfaces :: Event :: Changed ( fnet_interfaces :: Properties { id : Some ( INTERFACE_ID ) , name : None , device_class : None , online , addresses , has_default_ipv4_route : None , has_default_ipv6_route : None , .. fnet_interfaces :: Properties :: EMPTY } ) ; netcfg . handle_interface_watcher_event ( event , dns_watchers ) . await }
Handle receiving a netstack interface changed event.
Handle receiving a netstack interface changed event .
netcfg
&mut NetCfg<'_>
dns_watchers
&mut DnsServerWatchers<'_>
online
Option<bool>
addresses
Option<Vec<fnet_interfaces::Address>>