noticeable 0.2.0

A library for lazy observables
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 6.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.46 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • rob-mur/noticeable
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rob-mur

Noticeable

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.

Observable

This type allows the notification of Subscribers that an event has occured, who then each handle their callbacks for that event.

Subscriber

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.