Skip to main contentCrate ant_protocol
Source pub use error::Error;pub use error::Error as NetworkError;pub use constants::CLOSE_GROUP_SIZE;
- constants
- Constants
- error
- Errors.
- messages
- Messages types
Data messages and their possible responses.
- node_rpc
- RPC commands to node
- storage
- Storage types for GraphEntry and Chunk
- version
- Network versioning
- version_gate
- Version gating for peer validation
Version gating module for peer version validation.
- Bytes
- Re-export of Bytes used throughout the protocol
A cheaply cloneable and sliceable chunk of contiguous memory.
- PrettyPrintKBucketKey
- Pretty print a
kad::KBucketKey as a hex string. - PrettyPrintRecordKey
- Provides a hex representation of a
kad::RecordKey.
- NetworkAddress
- This is the address in the network by which proximity/distance
to other items (whether nodes or data chunks) are calculated.
- get_port_from_multiaddr
- Returns the UDP port from the provided MultiAddr.