pub fn new<I>(algo: D, peer_ids: I) -> Self
    where
        I: Iterator<Item = D::NodeId>,
    {
        SenderQueueBuilder {
            algo,
            peer_epochs: peer_ids.map(|id| (id, D::Epoch::default())).collect(),
        }
    }
/// Creates a new builder, with an empty outgoing queue and the specified known peers.
Creates a new builder, with an empty outgoing queue and the specified known peers.
Creates a new builder with an empty outgoing queue and the specified known peers .
pub fn new<I>(algo: D, peer_ids: I) -> Self
    where
        I: Iterator<Item = D::NodeId>,
    {
        SenderQueueBuilder {
            algo,
            peer_epochs: peer_ids.map(|id| (id, D::Epoch::default())).collect(),
        }
    }
pub fn new < I > ( algo : D , peer_ids : I ) -> Self where I : Iterator < Item = D :: NodeId > , { SenderQueueBuilder { algo , peer_epochs : peer_ids . map ( | id | ( id , D :: Epoch :: default ( ) ) ) . collect ( ) , } }
Creates a new builder, with an empty outgoing queue and the specified known peers.
Creates a new builder with an empty outgoing queue and the specified known peers .
algo
D
peer_ids
I
algo
D
peer_ids
I