Crate evident

Source
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§

pub use once_cell;
pub use uuid;

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 EvidentPublisher struct that is used to create public static publishers.
subscription
Contains the Subscription struct that is returned by subscribe functions from an EvidentPublisher.

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 Origin for the code position this macro is used at.