Crate api

Crate api 

Available on crate feature network only.
Expand description

Reth interface definitions and commonly used types for the reth-network crate.

Provides abstractions for the reth-network crate.

§Feature Flags

  • serde (default): Enable serde support

Modules§

downloaders
API related to syncing blocks.
error
Network Error
events
API related to listening for network events.
noop
Implementation of network traits for that does nothing. A network implementation that does nothing.
test_utils
API for integration testing network components.

Structs§

EthProtocolInfo
Represents a short summary of the eth sub-protocol metadata known about the host peer.
NetworkStatus
The status of the network being ran by the local node.
PeerInfo
Info about an active peer session.
PeerRequestSender
A Cloneable connection for sending requests directly to the session of a peer.

Enums§

Direction
The direction of the connection.
DiscoveredEvent
Represents events related to peer discovery in the network.
DiscoveryEvent
Events produced by the Discovery manager.
NetworkError
Network Errors
NetworkEvent
(Non-exhaustive) Network events representing peer lifecycle events and session requests.
PeerKind
Represents the kind of peer
PeerRequest
Protocol related request messages that expect a response
ReputationChangeKind
Various kinds of reputation changes.

Traits§

BlockClient
Helper trait that unifies network behaviour needed for fetching entire blocks.
BlockDownloaderProvider
Provides client for downloading blocks.
FullNetwork
Helper trait that unifies network API needed to launch node.
HeadersClient
The block headers downloader client
NetworkEventListenerProvider
Provides event subscription for the network.
NetworkInfo
Provides general purpose information about the network.
Peers
Provides an API for managing the peers of the network.
PeersInfo
Provides general purpose information about Peers in the network.

Type Aliases§

PeerId
The PeerId type.
Reputation
The type that tracks the reputation score.