Implement Connection::operator== and Connection::operator!=