netstack_testing_common::interfaces

Function wait_for_addresses

Source
pub async fn wait_for_addresses<T, F>(
    interfaces_state: &StateProxy,
    id: u64,
    predicate: F,
) -> Result<T>
where F: FnMut(&[Address<AllInterest>]) -> Option<T>,
Expand description

Wait until the given interface has a set of assigned addresses that matches the given predicate.