pub struct EffectManager { /* private fields */ }Expand description
Manager for effects with automatic cleanup.
Implementations§
Source§impl EffectManager
impl EffectManager
Sourcepub fn run_effects(&mut self, widget_id: WidgetId, deps: Option<&[u64]>)
pub fn run_effects(&mut self, widget_id: WidgetId, deps: Option<&[u64]>)
Run all effects for a widget.
Sourcepub fn cleanup_widget(&mut self, widget_id: WidgetId)
pub fn cleanup_widget(&mut self, widget_id: WidgetId)
Clean up effects for a widget (e.g., on unmount).
Sourcepub fn widget_count(&self) -> usize
pub fn widget_count(&self) -> usize
Get the number of widgets with effects.
Sourcepub fn effect_count(&self) -> usize
pub fn effect_count(&self) -> usize
Get the total number of effects.
Trait Implementations§
Source§impl Debug for EffectManager
impl Debug for EffectManager
Source§impl Default for EffectManager
impl Default for EffectManager
Source§fn default() -> EffectManager
fn default() -> EffectManager
Returns the “default value” for a type. Read more