iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
24.94k stars 1.18k forks source link

How can I share variables via subscription? #852

Closed ghost closed 3 years ago

ghost commented 3 years ago

To make IRC GUI application, I use iced lib expecially download_progress example. https://github.com/hecrj/iced/blob/master/examples/download_progress/src/download.rs

I've already made IRC GUI Reader using iced subscription, but I'd like to make sender client in subscription to send input message. It's difficult to understand subscription functions fully. Could you please give me any advices?

My work is here. https://github.com/lilybrevec/gelato

13r0ck commented 3 years ago

I don't understand your question. Communication across subscriptions is done with messages, and those messages can carry data.