Crates.io | message-dispatch |
lib.rs | message-dispatch |
version | 0.1.3 |
source | src |
created_at | 2019-02-02 10:45:40.608915 |
updated_at | 2019-02-03 13:29:29.439427 |
description | message-dispatch |
homepage | https://github.com/lemonrock/message-dispatch |
repository | https://github.com/lemonrock/message-dispatch.git |
max_upload_size | |
id | 112162 |
size | 58,482 |
message-dispatch is a Rust crate that provides dynamic dispatch support for messages of different types and sizes sent from one thread to another (or back to the same thread) without the need to use trait objects.
Internally it uses a lock-free, multi-producer, single consumer Magic (or Virtual) Ring Buffer.
As such, the only cost involved in dispatch is the cost of an indirect call.
It could even be used to send messages across POSIX message queues if so desired.
The license for this project is MIT.