Expand description
hyperlane-broadcast
hyperlane-broadcast is a lightweight and ergonomic wrapper over Tokio’s broadcast channel designed for easy-to-use publish-subscribe messaging in async Rust applications. It simplifies the native Tokio broadcast API by providing a straightforward interface for broadcasting messages to multiple subscribers with minimal boilerplate.
Structs§
- Broadcast
- Represents a broadcast mechanism for sending messages to multiple receivers.
- Broadcast
Map - Represents a concurrent, thread-safe map of broadcast channels, keyed by string.
Constants§
- DEFAULT_
BROADCAST_ SENDER_ CAPACITY - Defines the default capacity for a broadcast sender.
Traits§
- Broadcast
MapTrait - Defines the essential traits required for types that can be used as values in a
BroadcastMap
. - Broadcast
Trait - Defines the essential traits required for types that can be broadcast.
Type Aliases§
- Broadcast
MapReceiver - Represents a receiver endpoint for a broadcast channel within a map, allowing consumption of broadcasted messages.
- Broadcast
MapSend Error - Represents an error that occurs when attempting to send a message via a broadcast channel within a map.
- Broadcast
MapSend Result - Represents the result of a broadcast map send operation, indicating either success with an optional receiver count or an error.
- Broadcast
MapSender - Represents a sender endpoint for a broadcast channel within a map, used to dispatch messages.
- Broadcast
Receiver - Represents a receiver endpoint for a broadcast channel, allowing consumption of broadcasted messages.
- Broadcast
Send Error - Represents an error that occurs when attempting to send a message via broadcast.
- Broadcast
Send Result - Represents the result of a broadcast send operation, indicating either success with the number of receivers or an error.
- Broadcast
Sender - Represents a sender endpoint for a broadcast channel, used to dispatch messages to all subscribed receivers.
- Capacity
- Represents the maximum capacity or buffer size of a broadcast channel.
- Dash
MapString Broadcast - A concurrent, thread-safe map where keys are strings and values are broadcast channels.
- Option
Broadcast - Represents an optional broadcast channel.
- Option
Broadcast MapReceiver - Represents an optional receiver endpoint for a broadcast channel within a map.
- Option
Broadcast MapSender - Represents an optional sender endpoint for a broadcast channel within a map.
- Option
Receiver Count - Represents an optional count of active receivers.
- Receiver
Count - Represents the number of active receivers subscribed to a broadcast channel.