Trait external_ip::Source

source ·
pub trait Source: Display {
    // Required methods
    fn get_ip(&self, family: Family) -> IpFuture<'_>;
    fn box_clone(&self) -> Box<dyn Source>;
}
Expand description

Interface for any kind of external ip source

Required Methods§

source

fn get_ip(&self, family: Family) -> IpFuture<'_>

Returns a future that will represent the IP the source obtained

source

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

Clones the Source into a new Boxed trait object.

Trait Implementations§

source§

impl Clone for Box<dyn Source>

source§

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

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more

Implementors§