pub fn peer_connection_state_is<S>(
    address: Address,
    state: ConnectionState
) -> Predicate<S>
where S: 'static + AsRef<EmulatorState>,