Crates.io | mezzenger-utils |
lib.rs | mezzenger-utils |
version | 0.1.2 |
source | src |
created_at | 2023-01-23 08:55:30.251997 |
updated_at | 2023-09-13 11:40:42.212962 |
description | Utilities for mezzenger. |
homepage | https://github.com/zduny/mezzenger/tree/master/mezzenger-utils |
repository | https://github.com/zduny/mezzenger |
max_upload_size | |
id | 765660 |
size | 35,775 |
Utils for mezzenger.
https://crates.io/crates/mezzenger-utils
Following utilities are available or staged for development:
Inspector
- wrapper transport calling a callback whenever it sends or receives a message.
Work in progress.
Split
- split transport into two with different message types.
Work in progress.
Merged
- merge futures Stream
and Sink
into a mezzenger
transport.
Work in progress.
Numbered
- wrapper transport attaching a number to messages.
LatestOnly
- wrapper transport turning a numbered (but not necessarily ordered) transport
into an ordered transport, discarding old messages (polling a transport for the next message will return the latest received message, ignoring messages received before).
Potentially useful when user doesn't care about stale messages (for example multiplayer video games).
Reliable
- wrapper turning unreliable transport into reliable one (by acknowledging and resending lost messages after timeout).
Work in progress.
Ordered
- wrapper turning unordered (not guaranteeing message order)
but reliable transport into ordered (and deduplicating) one.
Work in progress.
Unreliabler
- wrapper turning a transport into unreliable (possibly losing messages) and/or unordered (sending messages not in order, possibly duplicating messages) one - useful for testing.
Work in progress.