#watcher

var-watcher

Watch for changes to a variable and initiate registered callbacks

1 unstable release

Uses old Rust 2015

0.1.0 May 23, 2016

#31 in #watcher

Custom license

2KB

Variable Watcher

Variable Watcher is a Rust crate that provides a wrapper around a variable, and calls all registered callback functions when the variable is mutated.

Future improvements

  • Generalize all sorts of function pointers stored by using the std::ops::Fn trait
  • Use &-pointer instead of a *-pointer for callbacks

No runtime deps