fn disconnects<'a, H, T>(expected: H, requests: T) -> bool
    where
        T: IntoIterator<Item = &'a DialRequest<H>> + 'a,
        H: 'a + PartialEq,
    {
        for req in requests.into_iter() {
            if let DialRequest::Disconnect { handle, .. } = req {
                if *handle == expected {
                    return true;
                }
            }
        }

        false
    }
/// Helper function that checks if a given dial request actually disconnects the expected
/// address.
Helper function that checks if a given dial request actually disconnects the expected
address.
Helper function that checks if a given dial request actually disconnects the expected address .
fn disconnects<'a, H, T>(expected: H, requests: T) -> bool
    where
        T: IntoIterator<Item = &'a DialRequest<H>> + 'a,
        H: 'a + PartialEq,
    {
        for req in requests.into_iter() {
            if let DialRequest::Disconnect { handle, .. } = req {
                if *handle == expected {
                    return true;
                }
            }
        }
        false
    }
fn disconnects < ' a , H , T > ( expected : H , requests : T ) -> bool where T : IntoIterator < Item = & ' a DialRequest < H > > + ' a , H : ' a + PartialEq , { for req in requests . into_iter ( ) { if let DialRequest :: Disconnect { handle , .. } = req { if * handle == expected { return true ; } } } false }
Helper function that checks if a given dial request actually disconnects the expected
address.
Helper function that checks if a given dial request actually disconnects the expected address .
expected
H
requests
T
expected
H
requests
T