Crates.io | events_emitter |
lib.rs | events_emitter |
version | 0.1.3 |
source | src |
created_at | 2019-04-23 07:58:23.867021 |
updated_at | 2019-04-23 09:51:35.867601 |
description | Rust implementation of Node.JS event. |
homepage | |
repository | https://github.com/xivistudios/events |
max_upload_size | |
id | 129611 |
size | 6,786 |
Rust implementation of Node.JS event
Implements most of the interfaces and functions of Node.JS Events.
Specific work conditions may vary.
extern crate events_emitter;
use events_emitter::EventEmitter;
let events = EventEmitter::new();
events.on("hello", |x| { println!("{}", x) });
events.emit("hello", "word");
events.remove("hello");