pub async fn routes(&mut self) -> Option<Vec<Route>> {
        let table = self.netstack.get_route_table().await;
        match table {
            Ok(entries) => Some(
                entries
                    .iter()
                    .map(Route::from)
                    .filter(|r| !r.target.address.is_loopback())
                    .collect(),
            ),
            Err(e) => {
                warn!("no entries present in forwarding table: {:?}", e);
                None
            }
        }
    }
/// Returns the running routing table (as seen by the network stack).
Returns the running routing table (as seen by the network stack).
Returns the running routing table ( as seen by the network stack ) .
pub async fn routes(&mut self) -> Option<Vec<Route>> {
        let table = self.netstack.get_route_table().await;
        match table {
            Ok(entries) => Some(
                entries
                    .iter()
                    .map(Route::from)
                    .filter(|r| !r.target.address.is_loopback())
                    .collect(),
            ),
            Err(e) => {
                warn!("no entries present in forwarding table: {:?}", e);
                None
            }
        }
    }
pub async fn routes ( & mut self ) -> Option < Vec < Route > > { let table = self . netstack . get_route_table ( ) . await ; match table { Ok ( entries ) => Some ( entries . iter ( ) . map ( Route :: from ) . filter ( | r | ! r . target . address . is_loopback ( ) ) . collect ( ) , ) , Err ( e ) => { warn ! ( " " e ) ; None } } }
Returns the running routing table (as seen by the network stack).
Returns the running routing table ( as seen by the network stack ) .
&mut self
&mut self