/// Wait until there is an IPv6 link-local address assigned to the interface
/// identified by `id`.
///
/// If there are multiple IPv6 link-local addresses assigned, the choice
/// of which particular address to return is arbitrary and should not be
/// relied upon.
///
/// Note that if a `netemul::TestInterface` is available, helpers on said type
/// should be preferred over using this function.
Wait until there is an IPv6 link-local address assigned to the interface
identified by `id`.

If there are multiple IPv6 link-local addresses assigned, the choice
of which particular address to return is arbitrary and should not be
relied upon.

Note that if a `netemul::TestInterface` is available, helpers on said type
should be preferred over using this function.
Wait until there is an IPv6 link - local address assigned to the interface identified by ` id ` . If there are multiple IPv6 link - local addresses assigned the choice of which particular address to return is arbitrary and should not be relied upon . Note that if a ` netemul :: TestInterface ` is available helpers on said type should be preferred over using this function .
pub async fn wait_for_v6_ll(
    interfaces_state: &fidl_fuchsia_net_interfaces::StateProxy,
    id: u64,
) -> Result<net_types::ip::Ipv6Addr> {
    wait_for_addresses(interfaces_state, id, |addresses| {
        addresses.into_iter().find_map(
            |&fidl_fuchsia_net_interfaces_ext::Address { value, valid_until: _ }| match value {
                fidl_fuchsia_net::InterfaceAddress::Ipv4(_) => None,
                fidl_fuchsia_net::InterfaceAddress::Ipv6(fidl_fuchsia_net::Ipv6Address {
                    addr,
                }) => {
                    let v6_addr = net_types::ip::Ipv6Addr::from_bytes(addr);
                    v6_addr.is_unicast_link_local().then(|| v6_addr)
                }
            },
        )
    })
    .await
    .context("wait for IPv6 link-local address")
}
pub async fn wait_for_v6_ll ( interfaces_state : & fidl_fuchsia_net_interfaces :: StateProxy , id : u64 , ) -> Result < net_types :: ip :: Ipv6Addr > { wait_for_addresses ( interfaces_state , id , | addresses | { addresses . into_iter ( ) . find_map ( | & fidl_fuchsia_net_interfaces_ext :: Address { value , valid_until : _ } | match value { fidl_fuchsia_net :: InterfaceAddress :: Ipv4 ( _ ) => None , fidl_fuchsia_net :: InterfaceAddress :: Ipv6 ( fidl_fuchsia_net :: Ipv6Address { addr , } ) => { let v6_addr = net_types :: ip :: Ipv6Addr :: from_bytes ( addr ) ; v6_addr . is_unicast_link_local ( ) . then ( | | v6_addr ) } } , ) } ) . await . context ( " " ) }
Wait until there is an IPv6 link-local address assigned to the interface
identified by `id`.
Wait until there is an IPv6 link - local address assigned to the interface identified by ` id ` .
interfaces_state
&fidl_fuchsia_net_interfaces::StateProxy
id
u64