[][src]Struct external_ip::Consensus

pub struct Consensus { /* fields omitted */ }

Consensus system that aggregates the various sources of information and returns the most common reply

Methods

impl Consensus[src]

pub async fn get_consensus(self) -> Option<IpAddr>[src]

Returns the IP address it found or None if no source worked.

Auto Trait Implementations

impl !RefUnwindSafe for Consensus

impl !Send for Consensus

impl !Sync for Consensus

impl Unpin for Consensus

impl !UnwindSafe for Consensus

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.