Skip to main content

OutboundIpResolver

Trait OutboundIpResolver 

Source
pub trait OutboundIpResolver: Send + Sync {
    // Required method
    fn outbound_ips<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait for resolving the local IP addresses for outbound connections.

Required Methods§

Source

fn outbound_ips<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the local IP addresses of the host that can be used to reach the network.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl OutboundIpResolver for Vec<IpAddr>

Source§

fn outbound_ips<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§