[−][src]Struct drying_paint::WatcherMeta
This structure is used internally by Watcher
Implementations
impl<T: 'static, '_> WatcherMeta<'_, T>
[src]
pub fn id(&self) -> WatcherId
[src]
Get a value representing a unique id for the watcher this WatcherMeta was created for. This value may outlive the watcher, and will never compare equal to a value returned by the id method of a Watcher other than this one.
impl<T: ?Sized + 'static, '_> WatcherMeta<'_, T>
[src]
pub fn watch<F>(&mut self, func: F) where
F: Fn(&mut T) + 'static,
[src]
F: Fn(&mut T) + 'static,
Use this to set up a function which should be re-run whenever watched values referenced inside change.
pub fn set_debug_name(&mut self, debug_name: &'static str)
[src]
Watches have a debug name used in some error messages. It defaults to the type name of the associated content (T). This function allows overriding that name.
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for WatcherMeta<'a, T>
impl<'a, T> !Send for WatcherMeta<'a, T>
impl<'a, T> !Sync for WatcherMeta<'a, T>
impl<'a, T: ?Sized> Unpin for WatcherMeta<'a, T>
impl<'a, T> !UnwindSafe for WatcherMeta<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,