41class server_description {
126 return {std::move(v)};
A polyfill for std::string_view.
Definition string_view.hpp:412
A read-only, non-owning view of a BSON document.
Definition view.hpp:40
ServerDescription from the Server Discovery and Monitoring specification.
Definition server_description.hpp:44
The description of a connected MongoDB server.
Definition server_description.hpp:41
std::uint16_t port() const
Returns the server port.
bsoncxx::v_noabi::document::view is_master() const
Definition server_description.hpp:85
std::int64_t round_trip_time() const
The duration of the last hello call, indicating network latency.
bsoncxx::v_noabi::document::view hello() const
The server's last response to the "hello" command, or an empty document if the driver has not yet rea...
bsoncxx::v_noabi::stdx::string_view host() const
Returns the server host name.
operator v1::events::server_description() const
Convert to the mongocxx::v1 equivalent.
bsoncxx::v_noabi::stdx::string_view type() const
The server type: "Unknown", "Standalone", "Mongos", "PossiblePrimary", "RSPrimary",...
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition export.hpp:25
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities describing APM events.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::events::server_description.
Provides bsoncxx::v_noabi::document::view.
Provides std::string_view-related polyfills for library API usage.
Declares mongocxx::v_noabi::events::server_description.