pub(super) async fn wait_interface_online(interface_id: u64) {
        let interface_state = fuchsia_component::client::connect_to_protocol::<
            fidl_fuchsia_net_interfaces::StateMarker,
        >()
        .expect("failed to connect to interfaces state service");
        fidl_fuchsia_net_interfaces_ext::wait_interface_with_id(
            fidl_fuchsia_net_interfaces_ext::event_stream_from_state(&interface_state)
                .expect("failed to create event stream"),
            &mut fidl_fuchsia_net_interfaces_ext::InterfaceState::Unknown(interface_id),
            |&fidl_fuchsia_net_interfaces_ext::Properties {
                 id: _,
                 addresses: _,
                 online,
                 device_class: _,
                 has_default_ipv4_route: _,
                 has_default_ipv6_route: _,
                 name: _,
             }| {
                if online {
                    Some(())
                } else {
                    None
                }
            },
        )
        .await
        .expect("failed to wait for interface online")
    }
/// Waits for interface with ID `interface_id` to come online.
Waits for interface with ID `interface_id` to come online.
Waits for interface with ID ` interface_id ` to come online .
pub(super) async fn wait_interface_online(interface_id: u64) {
        let interface_state = fuchsia_component::client::connect_to_protocol::<
            fidl_fuchsia_net_interfaces::StateMarker,
        >()
        .expect("failed to connect to interfaces state service");
        fidl_fuchsia_net_interfaces_ext::wait_interface_with_id(
            fidl_fuchsia_net_interfaces_ext::event_stream_from_state(&interface_state)
                .expect("failed to create event stream"),
            &mut fidl_fuchsia_net_interfaces_ext::InterfaceState::Unknown(interface_id),
            |&fidl_fuchsia_net_interfaces_ext::Properties {
                 id: _,
                 addresses: _,
                 online,
                 device_class: _,
                 has_default_ipv4_route: _,
                 has_default_ipv6_route: _,
                 name: _,
             }| {
                if online {
                    Some(())
                } else {
                    None
                }
            },
        )
        .await
        .expect("failed to wait for interface online")
    }
pub ( super ) async fn wait_interface_online ( interface_id : u64 ) { let interface_state = fuchsia_component :: client :: connect_to_protocol :: < fidl_fuchsia_net_interfaces :: StateMarker , > ( ) . expect ( " " ) ; fidl_fuchsia_net_interfaces_ext :: wait_interface_with_id ( fidl_fuchsia_net_interfaces_ext :: event_stream_from_state ( & interface_state ) . expect ( " " ) , & mut fidl_fuchsia_net_interfaces_ext :: InterfaceState :: Unknown ( interface_id ) , | & fidl_fuchsia_net_interfaces_ext :: Properties { id : _ , addresses : _ , online , device_class : _ , has_default_ipv4_route : _ , has_default_ipv6_route : _ , name : _ , } | { if online { Some ( ( ) ) } else { None } } , ) . await . expect ( " " ) }
Waits for interface with ID `interface_id` to come online.
Waits for interface with ID ` interface_id ` to come online .
interface_id
u64
interface_id
u64