Returns whether the object owns a connection or not.
bool valid() const noexcept;
No-throw guarantee.