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 Strings.
Re-exports§
Modules§
- creation_
macros - Contains macros used to create a static publisher, and the
set_event!()macro. - event
- Contains the evident
Event, and all related traits, structures, and functions. - publisher
- Contains the
EvidentPublisherstruct that is used to create public static publishers. - subscription
- Contains the
Subscriptionstruct that is returned bysubscribefunctions from anEvidentPublisher.
Macros§
- create_
set_ event_ macro - Macro to create the
set_event!()macro for a concrete implementation. - create_
static_ publisher - Macro to create a static publisher.
- this_
origin - Convenience wrapper to create an
Originfor the code position this macro is used at.