State, actions and view ownership

State, actions and view ownership A class and interface diagram generated by Archify. Settings · Application-owned state · Record «record» Settings enabledbool changesu32 App · Rust trait implemented by the app · Interface «interface» App update(Self::Action) view(&Theme)View<Self::Action> Ui<M> · Mounted objects, theme and queue · Record «record» Ui<M> mount(&A) drain(&mut A, usize) NotificationSettingsAction · Input intent, not stored state · Enumeration «enumeration» NotificationSettingsAction Enabled(bool) Reset View<M> · Alias for Node<M>: a description · Record «record» View<M> keyKey kindWidgetKind childrenVec<Node<M>> handlersHandlerSet<M> Theme · Owned by Ui, borrowed by view · Record «record» Theme impl App handles view() borrows app owns event mapping Legend Depends on Implements Composition