Trait 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§