Expand description
Re-exports§
Modules§
- authenticated
- Communicate with a fixed set of authenticated peers over encrypted connections.
- simulated
- Simulate networking between peers with configurable link behavior (i.e. drops, latency, corruption, etc.).
- types
- Shared address types for p2p networking.
- utils
- Utility functions for exchanging messages with many peers.
Macros§
- block
- Logs a warning and blocks a peer in a single call.
Enums§
- Recipients
- Enum indicating the set of recipients to send a message to.
Traits§
- Addressable
Manager - Interface for managing peer set membership (where peer addresses are known).
- Blocker
- Interface for blocking other peers.
- Checked
Sender - Interface for sending messages to
Recipientsthat are not currently rate-limited. - Limited
Sender - Interface for constructing a
CheckedSenderfrom a set ofRecipients, filtering out any that are currently rate-limited. - Manager
- Interface for managing peer set membership (where peer addresses are not known).
- Provider
- Interface for reading peer set information.
- Receiver
- Interface for receiving messages from arbitrary recipients.
- Sender
- Interface for sending messages to a set of recipients.
- Unlimited
Sender - Interface for sending messages to a set of recipients without rate-limiting restrictions.
Type Aliases§
- Channel
- Alias for identifying communication channels.
- Message
- Tuple representing a message received from a given public key.
- Peer
SetSubscription - Alias for the subscription type returned by
Provider::subscribe.