Struct Random
cdrs::load_balancing
pub struct Random<N> { /* fields omitted */ }
impl<N> Random<N>
pub fn new() -> Self
impl<N> From<Vec<N>> for Random<N>
fn from(cluster: Vec<N>) -> Random<N>
Performs the conversion.
impl<N> LoadBalancingStrategy<N> for Random<N>
fn init(&mut self, cluster: Vec<N>)
fn next(&mut self) -> Option<&mut N>
Returns next random node from a cluster
impl<N> Send for Random<N> where N: Send,
impl<N> Sync for Random<N> where N: Sync,