eventify 0.1.0-alpha.0

A utility library for variety of event-based programming patterns.
Documentation
  • Coverage
  • 58.62%
    17 out of 29 items documented1 out of 24 items with examples
  • Size
  • Source code size: 27.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • jacobrgreen114/eventify-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jacobrgreen114

eventify

A utility library for variety of event-based programming patterns.

*** Eventify is still in early development, and is not yet ready for use in production! ***

Examples

Events

use eventify::event::*;

fn main() {
    let event = Event::new();
    
    let hook = event.hook(|_| {
        println!("Event fired!");
    });
    
    event.emit(&());
}

Properties

use eventify::property::*;

fn main() {
    let property = Property::new("".to_string());

    let binding = property.bind(|value| {
        println!("Property changed to: {}", value);
    });

    *property.write().unwrap() = "Hello, world!".to_string();
}