Expand description
Re-exports§
pub use crate::discovery::DEFAULT_KADEMLIA_REPLICATION_FACTOR;
pub use crate::peer_store::PeerStoreProvider;
pub use crate::request_responses::IncomingRequest;
pub use crate::request_responses::OutgoingResponse;
pub use crate::request_responses::ProtocolConfig as RequestResponseConfig;
pub use crate::service::traits::NotificationConfig;
pub use crate::service::traits::NotificationService;
pub use crate::service::traits::PeerStore;
pub use crate::types::ProtocolName;
Modules§
- Ed25519 keys.
Macros§
- Easy way for a user to create a
Multiaddr
.
Structs§
- Full network configuration.
- Address of a node, including its identity.
- Network service configuration.
- Extension to
SetConfig
for sets that aren’t the default set. - Custom handshake for the notification protocol
- Notification metrics.
- Sink connected directly to the node background task. Allows sending notifications to the peer.
- Network initialization parameters.
- Channel pair which allows
Notifications
to interact with a protocol. - Protocol name prefix, transmitted on the wire for legacy protocol names. I.e.,
dot
in/dot/sync/2
. Should be unique for each chain. Always UTF-8. Deprecated in favour of genesis hash & fork ID based protocol names. - Bitmask of the roles that a node fulfills.
- Configuration for a set of nodes.
Enums§
- Network backend type.
- The configuration of a node’s secret key, describing the type of key and how it is obtained. A node’s identity keypair is the result of the evaluation of the node key configuration.
- The policy for connections to non-reserved peers.
- Error that can be generated by
parse_str_addr
. - Role of the local node.
- The configuration options for obtaining a secret key
K
. - Sync operation mode.
- Configuration for the transport layer.
Traits§
- Minimum Requirements for a Hash within Networking
Functions§
- Create new (protocol, notification) handle pair.
- Splits a Multiaddress into a Multiaddress and PeerId.
- Parses a string address and splits it into Multiaddress and PeerId, if valid.
Type Aliases§
- The options for obtaining a Ed25519 secret key.