Round robin

The simplest load balancing policy available.Takes all nodes in the cluster and uses them one after another.\

For example if there are nodes A, B, C in the cluster, this policy will use A, B, C, A, B, …


To use this policy in Session:

use scylla::{Session, SessionBuilder};
use scylla::transport::load_balancing::RoundRobinPolicy;
use std::sync::Arc;

let session: Session = SessionBuilder::new()