pub struct SignalContext<'s> { /* private fields */ }
Expand description
Context for retrieving state and tracking dependencies.
Implementations§
Source§impl<'s> SignalContext<'s>
impl<'s> SignalContext<'s>
pub fn uc(&mut self) -> &mut UpdateContext<'s>
Sourcepub fn untrack<T>(&mut self, f: impl FnOnce(&mut SignalContext<'s>) -> T) -> T
pub fn untrack<T>(&mut self, f: impl FnOnce(&mut SignalContext<'s>) -> T) -> T
Call a function with a SignalContext
that does not track dependencies.
Auto Trait Implementations§
impl<'s> Freeze for SignalContext<'s>
impl<'s> !RefUnwindSafe for SignalContext<'s>
impl<'s> !Send for SignalContext<'s>
impl<'s> !Sync for SignalContext<'s>
impl<'s> Unpin for SignalContext<'s>
impl<'s> !UnwindSafe for SignalContext<'s>
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