pub fn resolve(&self) -> impl Iterator<Item = PackedNode> {
        let pk = self.pk;
        let addrs = match self.addr.to_socket_addrs() {
            Ok(addrs) => addrs,
            Err(e) => {
                warn!("Failed to resolve bootstrap node address '{}': {}", self.addr, e);
                Vec::new().into_iter()
            },
        };
        addrs.map(move |addr| PackedNode::new(addr, &pk))
    }
/// Resolve string address of the node to possible multiple `SocketAddr`s.
Resolve string address of the node to possible multiple `SocketAddr`s.
Resolve string address of the node to possible multiple ` SocketAddr ` s .
pub fn resolve(&self) -> impl Iterator<Item = PackedNode> {
        let pk = self.pk;
        let addrs = match self.addr.to_socket_addrs() {
            Ok(addrs) => addrs,
            Err(e) => {
                warn!("Failed to resolve bootstrap node address '{}': {}", self.addr, e);
                Vec::new().into_iter()
            },
        };
        addrs.map(move |addr| PackedNode::new(addr, &pk))
    }
pub fn resolve ( & self ) -> impl Iterator < Item = PackedNode > { let pk = self . pk ; let addrs = match self . addr . to_socket_addrs ( ) { Ok ( addrs ) => addrs , Err ( e ) => { warn ! ( " " self addr e ) ; Vec :: new ( ) . into_iter ( ) } , } ; addrs . map ( move | addr | PackedNode :: new ( addr , & pk ) ) }
Resolve string address of the node to possible multiple `SocketAddr`s.
Resolve string address of the node to possible multiple ` SocketAddr ` s .
&self
&self