Crates.io | noticeable |
lib.rs | noticeable |
version | 0.2.0 |
source | src |
created_at | 2022-06-25 09:21:33.41046 |
updated_at | 2022-06-26 21:21:56.803707 |
description | A library for lazy observables |
homepage | |
repository | https://github.com/rob-mur/noticeable/ |
max_upload_size | |
id | 612937 |
size | 6,598 |
This is a simple crate that contains types to support the Observer pattern in Rust. For now, the types are safe to send across threads, but a single threaded version will likely be added eventually to remove the Send bound in callbacks.
This type allows the notification of Subscribers that an event has occured, who then each handle their callbacks for that event.
A handle used to subscribe to an Observables events. When the Subscriber goes out of scope, its callback will stop being called upon new events.