Crate ant_protocol

Source

Re-exports§

pub use error::Error;
pub use error::Error as NetworkError;
pub use constants::CLOSE_GROUP_SIZE;

Modules§

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

Structs§

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.

Enums§

NetworkAddress
This is the address in the network by which proximity/distance to other items (whether nodes or data chunks) are calculated.

Functions§

get_port_from_multiaddr
Returns the UDP port from the provided MultiAddr.