pub struct Effect { /* private fields */ }Expand description
A live subscription. Dropping it deregisters the effect, so the closure runs once and never again — which
looks exactly like a working binding until the value it derives is expected to move. Bind it to something
that lives as long as the work should: a struct field, a returned value, or a let the reader captures.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync 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