// Returns number of nodes to broadcast to
Returns number of nodes to broadcast to
Returns number of nodes to broadcast to
async fn broadcast_external_message(&self, msg: &[u8]) -> Result<u32>{
        let broadcast = ExternalMessageBroadcast {
            message: ExternalMessage {
                data: ton::bytes(msg.to_vec())
            }
        }.into_boxed();
        self.overlay.broadcast(&self.overlay_id, &serialize(&broadcast)?, None).await
    }
async fn broadcast_external_message ( & self , msg : & [ u8 ] ) -> Result < u32 > { let broadcast = ExternalMessageBroadcast { message : ExternalMessage { data : ton :: bytes ( msg . to_vec ( ) ) } } . into_boxed ( ) ; self . overlay . broadcast ( & self . overlay_id , & serialize ( & broadcast ) ? , None ) . await }
Returns number of nodes to broadcast to
Returns number of nodes to broadcast to
&self
msg
&[u8]