Modules§
Macros§
- Macro to indefinitely await a channel
Receiver<pb::KaspadMessage>::recv
call and expect a specific payload type (without a timeout). Usage: - Macro to await a channel
Receiver<pb::KaspadMessage>::recv
call with a default/specified timeout and expect a specific payload type. Usage: - Wraps an inner payload message into a valid
KaspadMessage
. Usage: - Macro to extract a specific payload type from an
Option<pb::KaspadMessage>
. Usage:
Structs§
- The main object to create for managing a fully-fledged Kaspa P2P peer
- Hub of active peers (represented as Router objects). Note that all public methods of this type are exposed through the Adaptor
- Implements the Kaspa peer-to-peer handshake protocol
- A router object for managing the communication to a network peer. It is named a router because it’s responsible for internally routing messages to P2P flows based on registration and message types
Enums§
Constants§
Traits§
- The main entrypoint for external usage of the P2P library. An impl of this trait is expected on P2P server initialization and will be called on each new (in/out) P2P connection with a corresponding dedicated new router