pub fn pick_one(&self) -> Option<IpAddr> {
        if self.0.len() == 0 {
            return None
        }
        thread_rng().choose(&self.0[..]).map(|&x| x)
    }
/// Select one random address to connect to
///
/// This function selects a random address from the list of addresses or
/// `None` if list is empty.
Select one random address to connect to
This function selects a random address from the list of addresses or
`None` if list is empty.
Select one random address to connect to This function selects a random address from the list of addresses or ` None ` if list is empty .
pub fn pick_one(&self) -> Option<IpAddr> {
        if self.0.len() == 0 {
            return None
        }
        thread_rng().choose(&self.0[..]).map(|&x| x)
    }
pub fn pick_one ( & self ) -> Option < IpAddr > { if self . 0 . len ( ) == 0 { return None } thread_rng ( ) . choose ( & self . 0 [ .. ] ) . map ( | & x | x ) }
Select one random address to connect to
This function selects a random address from the list of addresses or
`None` if list is empty.
Select one random address to connect to This function selects a random address from the list of addresses or ` None ` if list is empty .
&self
&self