[][src]Trait external_ip::Source

pub trait Source: Display {
    fn get_ip<'a>(&'a self) -> IpFuture<'a>;
fn box_clone(&self) -> Box<dyn Source>; }

Interface for any kind of external ip source

Required methods

fn get_ip<'a>(&'a self) -> IpFuture<'a>

Returns a future that will represent the IP the source obtained

fn box_clone(&self) -> Box<dyn Source>

Clones the Source into a new Boxed trait object.

Loading content...

Implementors

impl Source for DNSSource[src]

impl Source for HTTPSource[src]

impl Source for IGD[src]

Loading content...