UpdateFunctions 0.1.6

A small package for calling a function at a desired interval
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 2.76 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Sha-dos

Update Functions

A small package for calling a function at a desired interval

Usage

fn main() {
let dur = Duration::new(1, 0) // One second and 0 ms
UpdateFunctions::update(dur, Update)
}

pub fn Update() {
println!("Updating!");
}

Installation

In cargo.toml

UpdateFunctions = "0.1.3"