pub fn seed<T: net::ToSocketAddrs + std::fmt::Debug>(&mut self, seeds: &[T]) -> io::Result<()> {
        let connect = seeds
            .iter()
            .flat_map(|seed| match seed.to_socket_addrs() {
                Ok(addrs) => addrs.map(Ok).collect(),
                Err(err) => vec![Err(err)],
            })
            .collect::<io::Result<Vec<_>>>()?;

        self.connect.extend(connect);

        Ok(())
    }
/// Add seeds to connect to.
Add seeds to connect to.
Add seeds to connect to .
pub fn seed<T: net::ToSocketAddrs + std::fmt::Debug>(&mut self, seeds: &[T]) -> io::Result<()> {
        let connect = seeds
            .iter()
            .flat_map(|seed| match seed.to_socket_addrs() {
                Ok(addrs) => addrs.map(Ok).collect(),
                Err(err) => vec![Err(err)],
            })
            .collect::<io::Result<Vec<_>>>()?;
        self.connect.extend(connect);
        Ok(())
    }
pub fn seed < T : net :: ToSocketAddrs + std :: fmt :: Debug > ( & mut self , seeds : & [ T ] ) -> io :: Result < ( ) > { let connect = seeds . iter ( ) . flat_map ( | seed | match seed . to_socket_addrs ( ) { Ok ( addrs ) => addrs . map ( Ok ) . collect ( ) , Err ( err ) => vec ! [ Err ( err ) ] , } ) . collect :: < io :: Result < Vec < _ > > > ( ) ? ; self . connect . extend ( connect ) ; Ok ( ( ) ) }
Add seeds to connect to.
Add seeds to connect to .
&mut self
seeds
&[T]