pub fn new(
        address: SocketAddr,
        pool_config: PoolConfig,
        datacenter: Option<String>,
        rack: Option<String>,
        keyspace_name: Option<VerifiedKeyspaceName>,
    ) -> Self {
        let pool =
            NodeConnectionPool::new(address.ip(), address.port(), pool_config, keyspace_name);

        Node {
            address,
            datacenter,
            rack,
            pool,
            down_marker: false.into(),
        }
    }
/// Creates new node which starts connecting in the background
/// # Arguments
///
/// `address` - address to connect to
/// `compression` - preferred compression to use
/// `datacenter` - optional datacenter name
/// `rack` - optional rack name
Creates new node which starts connecting in the background
Creates new node which starts connecting in the background
pub fn new(
        address: SocketAddr,
        pool_config: PoolConfig,
        datacenter: Option<String>,
        rack: Option<String>,
        keyspace_name: Option<VerifiedKeyspaceName>,
    ) -> Self {
        let pool =
            NodeConnectionPool::new(address.ip(), address.port(), pool_config, keyspace_name);
        Node {
            address,
            datacenter,
            rack,
            pool,
            down_marker: false.into(),
        }
    }
pub fn new ( address : SocketAddr , pool_config : PoolConfig , datacenter : Option < String > , rack : Option < String > , keyspace_name : Option < VerifiedKeyspaceName > , ) -> Self { let pool = NodeConnectionPool :: new ( address . ip ( ) , address . port ( ) , pool_config , keyspace_name ) ; Node { address , datacenter , rack , pool , down_marker : false . into ( ) , } }
Creates new node which starts connecting in the background
Creates new node which starts connecting in the background
address
SocketAddr
pool_config
PoolConfig
datacenter
Option<String>
rack
Option<String>
keyspace_name
Option<VerifiedKeyspaceName>
address
SocketAddr
pool_config
PoolConfig
datacenter
Option<String>
rack
Option<String>
keyspace_name
Option<VerifiedKeyspaceName>