Struct drying_paint::WatchedMeta
source · pub struct WatchedMeta<'ctx, O: ?Sized = DefaultOwner> { /* private fields */ }
Expand description
This provides the basic functionality behind watched values. You can use it to provide functionality using the watch system for cases where Watched and WatchedEvent are not appropriate.
Implementations§
source§impl<'ctx, O: ?Sized> WatchedMeta<'ctx, O>
impl<'ctx, O: ?Sized> WatchedMeta<'ctx, O>
sourcepub fn watched(&self, ctx: WatchArg<'_, 'ctx, O>)
pub fn watched(&self, ctx: WatchArg<'_, 'ctx, O>)
When run in a function designed to watch a value, will bind so that function will be re-run when this is triggered.
sourcepub fn trigger(&self, ctx: WatchArg<'_, 'ctx, O>)
pub fn trigger(&self, ctx: WatchArg<'_, 'ctx, O>)
Mark this value as having changed, so that watching functions will be marked as needing to be updated.
pub fn trigger_external(&self)
source§impl WatchedMeta<'static, DefaultOwner>
impl WatchedMeta<'static, DefaultOwner>
pub fn watched_auto(&self)
pub fn trigger_auto(&self)
Trait Implementations§
source§impl<'ctx, O: ?Sized> Default for WatchedMeta<'ctx, O>
impl<'ctx, O: ?Sized> Default for WatchedMeta<'ctx, O>
Auto Trait Implementations§
impl<'ctx, O = DefaultOwner> !RefUnwindSafe for WatchedMeta<'ctx, O>
impl<'ctx, O = DefaultOwner> !Send for WatchedMeta<'ctx, O>
impl<'ctx, O = DefaultOwner> !Sync for WatchedMeta<'ctx, O>
impl<'ctx, O: ?Sized> Unpin for WatchedMeta<'ctx, O>
impl<'ctx, O = DefaultOwner> !UnwindSafe for WatchedMeta<'ctx, O>
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