pub fn host(host: impl AsRef<str>) -> Self {
        Self {
            interface: Some(format!("host!{}", host.as_ref())),
        }
    }
/// Bind to the given local host or address. This can either be a host name
/// or an IP address.
///
/// # Examples
///
/// ```
/// # use isahc::config::NetworkInterface;
/// let local = NetworkInterface::host("server.local");
/// let addr = NetworkInterface::host("192.168.1.2");
/// ```
Bind to the given local host or address. This can either be a host name
or an IP address.
Bind to the given local host or address . This can either be a host name or an IP address .
pub fn host(host: impl AsRef<str>) -> Self {
        Self {
            interface: Some(format!("host!{}", host.as_ref())),
        }
    }
pub fn host ( host : impl AsRef < str > ) -> Self { Self { interface : Some ( format ! ( " " host as_ref ( ) ) ) , } }
Bind to the given local host or address.
Bind to the given local host or address .
host
impl AsRef<str>
host
impl AsRef<str>
examples
None
use isahc::config::networkinterface;
let local = NetworkInterface::host("server.local");
let addr = NetworkInterface::host("192.168.1.2");
```
let local = NetworkInterface :: host ( " server . local " ) ; let addr = NetworkInterface :: host ( " 192 . 168 . 1 . 2 " ) ; ` ` `