pub trait Provider: Sized {
    fn get_addr<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<IpAddr>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_type(&self) -> IpType; }
Expand description

Any IP Provider.

Required Methods

Get the address provided by this provider.

Get the IpType that this provider gives.

Implementors