pub enum StateChange {
SyncWindows,
ThemeChanged(Theme, ThemeChrome),
ThemeFollowsSystem,
ExitNodes(Vec<(String, usize, TreeNode)>),
WidgetConfig(Value),
}Expand description
Changes to host-owned state that lives outside Core.
Variants§
SyncWindows
The window set may have changed; re-sync with renderer.
Produced after every Snapshot and Patch that succeeds. The host
should compare tree.window_ids() against its open window set
and open/close as needed.
ThemeChanged(Theme, ThemeChrome)
The global/root theme changed to an explicit value.
The host should update its cached theme and set
theme_follows_system = false.
ThemeFollowsSystem
The root theme was set to "system": the app-level theme
should follow the OS preference.
ExitNodes(Vec<(String, usize, TreeNode)>)
Nodes removed during a patch that had “exit” props. The host should promote these to ghost nodes for exit animations.
WidgetConfig(Value)
Widget configuration received from the host’s Settings message.
The host should call dispatcher.init_all(&config, &theme, ...)
to pass configuration and context to registered widgets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateChange
impl RefUnwindSafe for StateChange
impl Send for StateChange
impl Sync for StateChange
impl Unpin for StateChange
impl UnsafeUnpin for StateChange
impl UnwindSafe for StateChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.