Expand description
Transport binary protocol layer (codec, pipeline, heartbeat, stream). Collection of objects and functionality allowing building of p2p or stream protocols for the higher business logic layers.
§Contents
Supported protocol configurations:
mixackheartbeat
Re-exports§
pub use counters::PeerProtocolCounterRegistry;pub use counters::PeerProtocolCounters;
Modules§
- codec 🔒
- Coder and decoder for the transport binary protocol layer
- counters
- Per-peer protocol conformance counters.
- errors
- Errors produced by the crate.
- heartbeat
heartbeatp2p protocol- pipeline 🔒
- Packet pipeline for the HOPR protocol. HOPR packet processing pipeline.
- return_
path_ recovery - Sequences re-planning ahead of refilling when a return path goes silent. Sequences the response to a return path that has gone silent.
- stream
- Stream processing utilities
Infrastructure supporting converting a collection of
PeerIdsplitlibp2p_streammanaged individual peer-to-peerlibp2p::swarm::Streams. - surb_
telemetry - Records SURB round-trips as network graph edge telemetry. Turns SURB round-trips into edge telemetry for the network graph.
Structs§
- Acknowledgement
Pipeline Config - Configuration for the acknowledgement processing pipeline.
- Packet
Pipeline Builder - Builder for constructing the HOPR packet pipeline for a specific node type.
- Packet
Pipeline Config - Overall configuration of the input/output packet processing pipeline.
- Pool
Arbitration Config - Arbitration of the shared Rayon pool, protecting the encode path (SPHINX wrap + SURB generation) from decode floods (SPHINX peel — relay forwarding + exit termination).
- Unset
- Placeholder type used by
PacketPipelineBuilderfor generic parameters that have not yet been provided via the corresponding builder method.
Enums§
- Node
Type - Node type for which the packet processing pipeline is being constructed.
- Packet
Pipeline Processes