mongo-rust-driver
mongo-rust-driver copied to clipboard
`ServerAddress` should use `std::net` types to pass a TCP socket.
ServerAddress should make use of existing standard library types to pass the TCP socket e.g. SocketAddr. Passing it as a string (e.g. ServerAddress::Tcp { host "my_socket", port: Some(4040) }) is error prone.