pub fn send_to_many(
        &mut self,
        recipients: impl Iterator<Item = PeerId>,
        protocol: ProtocolId,
        message: TMessage,
    ) -> Result<(), NetworkError> {
        // Serialize message.
        let mdata = lcs::to_bytes(&message)?.into();
        self.peer_mgr_reqs_tx
            .send_to_many(recipients, protocol, mdata)?;
        Ok(())
    }
/// Send a protobuf message to a many recipients. Provides a wrapper over
/// `[peer_manager::PeerManagerRequestSender::send_to_many]`.
Send a protobuf message to a many recipients.
Send a protobuf message to a many recipients .
pub fn send_to_many(
        &mut self,
        recipients: impl Iterator<Item = PeerId>,
        protocol: ProtocolId,
        message: TMessage,
    ) -> Result<(), NetworkError> {
        // Serialize message.
        let mdata = lcs::to_bytes(&message)?.into();
        self.peer_mgr_reqs_tx
            .send_to_many(recipients, protocol, mdata)?;
        Ok(())
    }
pub fn send_to_many ( & mut self , recipients : impl Iterator < Item = PeerId > , protocol : ProtocolId , message : TMessage , ) -> Result < ( ) , NetworkError > { // Serialize message. let mdata = lcs :: to_bytes ( & message ) ? . into ( ) ; self . peer_mgr_reqs_tx . send_to_many ( recipients , protocol , mdata ) ? ; Ok ( ( ) ) }
Send a protobuf message to a many recipients.
Send a protobuf message to a many recipients .
&mut self
recipients
impl Iterator<Item = PeerId>
protocol
ProtocolId
message
TMessage
&mut self
recipients
impl Iterator<Item = PeerId>
protocol
ProtocolId
message
TMessage