Expand description
evident makes it easy to create custom multithreaded pub/sub functionality. Communication is achieved by capturing events with distinct IDs, and forwarding those events to subscribers of the related IDs.
The tests/min_concretise folder contains a minimal example on how to create your custom pub/sub setup.
A custom filter is added in the tests/min_filter folder. This filter may be used to prevent events from being captured.
Checkout the tests/min_msg folder
if you want to send custom event messages instead of regular String
s.
Re-exports
Modules
- Contains macros used to create a static publisher, and the
set_event!()
macro. - Contains the evident
Event
, and all related traits, structures, and functions. - Contains the
EvidentPublisher
struct that is used to create public static publishers.
Macros
- Macro to create the
set_event!()
macro for a concrete implementation. - Macro to create a static publisher.
- Convenience wrapper to create an
Origin
for the code position this macro is used at.