[−][src]Function cdrs_tokio::cluster::session::new_snappy
pub async fn new_snappy<'a, A, LB, '_>(
node_configs: &'_ ClusterTcpConfig<'a, A>,
load_balancing: LB
) -> Result<Session<LB>> where
A: Authenticator + 'static + Sized,
LB: LoadBalancingStrategy<TcpConnectionPool<A>> + Sized,
Creates new session that will perform queries with Snappy compression. Compression
type
can be changed at any time.
As a parameter it takes:
- cluster config
- load balancing strategy (cannot be changed during
Session
life time).