pub async fn compute_state(&mut self, properties: &fnet_interfaces_ext::Properties) {
        // TODO(https://fxbug.dev/75079) Get the route table ourselves.
        let routes = self.hal.routes().await.unwrap_or_else(|| {
            error!("failed to get route table");
            Vec::new()
        });
        if let Some(info) = compute_state(properties, &routes, &mut *self.pinger).await {
            let id = Id::from(properties.id);
            let () = self.update_state(id, &properties.name, info);
        }
    }
/// Compute the reachability state of an interface.
///
/// The interface may have been recently-discovered, or the properties of a known interface may
/// have changed.
Compute the reachability state of an interface.
The interface may have been recently-discovered, or the properties of a known interface may
have changed.
Compute the reachability state of an interface . The interface may have been recently - discovered or the properties of a known interface may have changed .
pub async fn compute_state(&mut self, properties: &fnet_interfaces_ext::Properties) {
        // TODO(https://fxbug.dev/75079) Get the route table ourselves.
        let routes = self.hal.routes().await.unwrap_or_else(|| {
            error!("failed to get route table");
            Vec::new()
        });
        if let Some(info) = compute_state(properties, &routes, &mut *self.pinger).await {
            let id = Id::from(properties.id);
            let () = self.update_state(id, &properties.name, info);
        }
    }
pub async fn compute_state ( & mut self , properties : & fnet_interfaces_ext :: Properties ) { // TODO(https://fxbug.dev/75079) Get the route table ourselves. let routes = self . hal . routes ( ) . await . unwrap_or_else ( | | { error ! ( " " ) ; Vec :: new ( ) } ) ; if let Some ( info ) = compute_state ( properties , & routes , & mut * self . pinger ) . await { let id = Id :: from ( properties . id ) ; let ( ) = self . update_state ( id , & properties . name , info ) ; } }
Compute the reachability state of an interface.
Compute the reachability state of an interface .
&mut self
properties
&fnet_interfaces_ext::Properties
&mut self
properties
&fnet_interfaces_ext::Properties