pub struct ForceTickContext { /* private fields */ }Expand description
A per-surface force-tick signal, subscribed by every segment on that surface. Bumped after each event so segments re-run even when their view reads signals the effect cannot auto-track — notably the binary-side root segment under hot reload, whose view reads signals created in the app dylib (cross-boundary tracking is unreliable, so the force-tick makes it re-read current values, e.g. the real viewport). Per-surface so one surface’s event does not force-render the others; a global change (theme) re-renders all surfaces via its own shared signal, not this tick.
Implementations§
Source§impl ForceTickContext
impl ForceTickContext
Sourcepub fn enter(&self) -> ForceTickGuard
pub fn enter(&self) -> ForceTickGuard
Makes this instance the live one until the returned guard drops, which restores the previously-active instance. Nest by keeping guards in scope; they restore in reverse order.
Trait Implementations§
Source§impl Default for ForceTickContext
impl Default for ForceTickContext
Source§impl Drop for ForceTickContext
impl Drop for ForceTickContext
Auto Trait Implementations§
impl !RefUnwindSafe for ForceTickContext
impl !Send for ForceTickContext
impl !Sync for ForceTickContext
impl !UnwindSafe for ForceTickContext
impl Freeze for ForceTickContext
impl Unpin for ForceTickContext
impl UnsafeUnpin for ForceTickContext
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