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
Auto Trait Implementations§
impl Freeze for EffectManager
impl !RefUnwindSafe for EffectManager
impl Send for EffectManager
impl !Sync for EffectManager
impl Unpin for EffectManager
impl !UnwindSafe for EffectManager
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().