January 2018
Beginner to intermediate
454 pages
10h 8m
English
Relm widgets communicate by sending messages to other widgets, but also to themselves. For instance, when the delete_event signal is emitted, we can emit the Quit message to our widget and take appropriate action when we receive this message. A message is modeled as an enum using the custom derive Msg that is specific to relm:
#[derive(Msg)] pub enum Msg { Quit, }
This custom derive is provided by the relm_derive crate.
Read now
Unlock full access