Expand description
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
- Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents a broadcast mechanism for sending messages to multiple receivers. - Broadcast
Map - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents a concurrent, thread-safe map of broadcast channels, keyed by string.
Constants§
- DEFAULT_
BROADCAST_ SENDER_ CAPACITY - Re-exports constants, structs, traits, and types from the
broadcastmodule. Defines the default capacity for a broadcast sender.
Traits§
- Broadcast
MapTrait - Re-exports structs, traits, and types from the
broadcast_mapmodule. Defines the essential traits required for types that can be used as values in aBroadcastMap. - Broadcast
Trait - Re-exports constants, structs, traits, and types from the
broadcastmodule. Defines the essential traits required for types that can be broadcast.
Type Aliases§
- Broadcast
MapReceiver - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents a receiver endpoint for a broadcast channel within a map, allowing consumption of broadcasted messages. - Broadcast
MapSend Error - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents an error that occurs when attempting to send a message via a broadcast channel within a map. - Broadcast
MapSend Result - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents the result of a broadcast map send operation, indicating either success with an optional receiver count or an error. - Broadcast
MapSender - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents a sender endpoint for a broadcast channel within a map, used to dispatch messages. - Broadcast
Receiver - Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents a receiver endpoint for a broadcast channel, allowing consumption of broadcasted messages. - Broadcast
Send Error - Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents an error that occurs when attempting to send a message via broadcast. - Broadcast
Send Result - Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents the result of a broadcast send operation, indicating either success with the number of receivers or an error. - Broadcast
Sender - Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents a sender endpoint for a broadcast channel, used to dispatch messages to all subscribed receivers. - Capacity
- Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents the maximum capacity or buffer size of a broadcast channel. - Dash
MapString Broadcast - Re-exports structs, traits, and types from the
broadcast_mapmodule. A concurrent, thread-safe map where keys are strings and values are broadcast channels. - Option
Broadcast - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents an optional broadcast channel. - Option
Broadcast MapReceiver - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents an optional receiver endpoint for a broadcast channel within a map. - Option
Broadcast MapSender - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents an optional sender endpoint for a broadcast channel within a map. - Option
Receiver Count - Re-exports structs, traits, and types from the
broadcast_mapmodule. Represents an optional count of active receivers. - Receiver
Count - Re-exports constants, structs, traits, and types from the
broadcastmodule. Represents the number of active receivers subscribed to a broadcast channel.