pub(super) fn new(http_client: HttpClient, options: Option<&ConnectionPoolOptions>) -> Self {
        let handshaker = Handshaker::new(options.cloned().map(Into::into));

        Self {
            handshaker,
            http_client,
            credential: options.and_then(|options| options.credential.clone()),
            server_api: options.and_then(|options| options.server_api.clone()),
        }
    }
/// Creates a new ConnectionEstablisher from the given options.
Creates a new ConnectionEstablisher from the given options.
Creates a new ConnectionEstablisher from the given options .
pub(super) fn new(http_client: HttpClient, options: Option<&ConnectionPoolOptions>) -> Self {
        let handshaker = Handshaker::new(options.cloned().map(Into::into));
        Self {
            handshaker,
            http_client,
            credential: options.and_then(|options| options.credential.clone()),
            server_api: options.and_then(|options| options.server_api.clone()),
        }
    }
pub ( super ) fn new ( http_client : HttpClient , options : Option < & ConnectionPoolOptions > ) -> Self { let handshaker = Handshaker :: new ( options . cloned ( ) . map ( Into :: into ) ) ; Self { handshaker , http_client , credential : options . and_then ( | options | options . credential . clone ( ) ) , server_api : options . and_then ( | options | options . server_api . clone ( ) ) , } }
Creates a new ConnectionEstablisher from the given options.
Creates a new ConnectionEstablisher from the given options .
http_client
HttpClient
options
Option<&ConnectionPoolOptions>
http_client
HttpClient
options
Option<&ConnectionPoolOptions>