pub struct Effect { /* private fields */ }Expand description
Code that reruns when what it read changes. Every widget binding is one.
Create one with Owner::effect or
Owner::effect_scoped. A new effect is
queued straight away. Created during a Runtime::flush,
for example by another effect, it runs later in that same flush; created
anywhere else, it runs at the next flush. After that it reruns whenever a
signal or memo it read on its last run changes. It stops for good when
its owner is disposed, when its closure panics, or when it is caught in a
dependency cycle. The last two are logged with its debug name.
Implementations§
Trait Implementations§
impl Copy for Effect
impl Eq for Effect
Auto Trait Implementations§
impl !Send for Effect
impl !Sync for Effect
impl Forget for Effect
impl Freeze for Effect
impl Move for Effect
impl RefUnwindSafe for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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