/// Creates a new Ping instance from `IpAddr`.
Creates a new Ping instance from `IpAddr`.
Creates a new Ping instance from ` IpAddr ` .
pub fn new(host: IpAddr) -> Result<Pinger> {
        Ok(Pinger {
            host,
            ident: random(),
            size: 56,
            timeout: Duration::from_secs(2),
            socket: AsyncSocket::new(host)?,
            cache: Cache::new(),
        })
    }
pub fn new ( host : IpAddr ) -> Result < Pinger > { Ok ( Pinger { host , ident : random ( ) , size : 56 , timeout : Duration :: from_secs ( 2 ) , socket : AsyncSocket :: new ( host ) ? , cache : Cache :: new ( ) , } ) }
Creates a new Ping instance from `IpAddr`.
Creates a new Ping instance from ` IpAddr ` .
host
IpAddr