fidl_fuchsia_net_interfaces_ext::admin

Function wait_assignment_state

Source
pub async fn wait_assignment_state<S>(
    stream: S,
    want: AddressAssignmentState,
) -> Result<(), AddressStateProviderError>
Expand description

Wait until the Assigned state is observed on stream.

After this async function resolves successfully, the underlying AddressStateProvider may be used as usual. If an error is returned, a terminal error has occurred on the underlying channel.