Enum exar::RoutingStrategy [] [src]

pub enum RoutingStrategy {
    Random,
    RoundRobin(usize),
}

A list specifying categories of routing strategy.

Variants

Random

The next element is picked at random.

RoundRobin(usize)

The next element is picked using the round-robin algorithm.

Trait Implementations

impl Eq for RoutingStrategy
[src]

impl PartialEq for RoutingStrategy
[src]

fn eq(&self, __arg_0: &RoutingStrategy) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &RoutingStrategy) -> bool

This method tests for !=.

impl Debug for RoutingStrategy
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for RoutingStrategy
[src]

fn clone(&self) -> RoutingStrategy

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Encodable for RoutingStrategy
[src]

fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>

impl Decodable for RoutingStrategy
[src]

fn decode<D: Decoder>(d: &mut D) -> Result<Self, D::Error>

impl Default for RoutingStrategy
[src]

fn default() -> Self

Returns the "default value" for a type. Read more