pub async fn expect_no_peer(host: &HostDriverHarness, id: String) -> Result<(), Error> {
    let fut = host.when_satisfied(
        Predicate::<HostState>::new(move |host| host.peers.iter().all(|(i, _)| i != &id), None),
        timeout_duration(),
    );
    fut.await?;
    Ok(())
}
// Returns a future that resolves when a peer matching `id` is not present on the host.
Returns a future that resolves when a peer matching `id` is not present on the host.
Returns a future that resolves when a peer matching ` id ` is not present on the host .
pub async fn expect_no_peer(host: &HostDriverHarness, id: String) -> Result<(), Error> {
    let fut = host.when_satisfied(
        Predicate::<HostState>::new(move |host| host.peers.iter().all(|(i, _)| i != &id), None),
        timeout_duration(),
    );
    fut.await?;
    Ok(())
}
pub async fn expect_no_peer ( host : & HostDriverHarness , id : String ) -> Result < ( ) , Error > { let fut = host . when_satisfied ( Predicate :: < HostState > :: new ( move | host | host . peers . iter ( ) . all ( | ( i , _ ) | i != & id ) , None ) , timeout_duration ( ) , ) ; fut . await ? ; Ok ( ( ) ) }
Returns a future that resolves when a peer matching `id` is not present on the host.
Returns a future that resolves when a peer matching ` id ` is not present on the host .
host
&HostDriverHarness
id
String