[][src]Struct cdrs_tokio::load_balancing::RoundRobin

pub struct RoundRobin<N> { /* fields omitted */ }

Implementations

impl<N> RoundRobin<N>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<N: Debug> Debug for RoundRobin<N>[src]

impl<N> From<Vec<Arc<N>>> for RoundRobin<N>[src]

impl<N> LoadBalancingStrategy<N> for RoundRobin<N> where
    N: Sync + Send
[src]

fn next(&self) -> Option<Arc<N>>[src]

Returns next node from a cluster

Auto Trait Implementations

impl<N> RefUnwindSafe for RoundRobin<N> where
    N: RefUnwindSafe

impl<N> Send for RoundRobin<N> where
    N: Send + Sync

impl<N> Sync for RoundRobin<N> where
    N: Send + Sync

impl<N> Unpin for RoundRobin<N>

impl<N> UnwindSafe for RoundRobin<N> where
    N: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.