[][src]Enum external_ip::Policy

pub enum Policy {
    All,
    First,
    Random,
}

Policies for Consensus resolution

Variants

All

Requires all sources to be queried, it will ignore the sources returning errors but and it will return the IP with the most replies as the result.

First

Will test the sources one by one in order until there's one success and will return it as the result.

Random

Will test the sources one by one in random order until there's one success and will return it as the result.

Trait Implementations

impl Clone for Policy[src]

impl Copy for Policy[src]

impl Debug for Policy[src]

impl Default for Policy[src]

Auto Trait Implementations

impl RefUnwindSafe for Policy

impl Send for Policy

impl Sync for Policy

impl Unpin for Policy

impl UnwindSafe for Policy

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,