Module sc_network::service::traits
source · Expand description
Traits defined by sc-network
.
Structs§
- The (opaque) key of a record.
Multiaddr
type used in Substrate. Converted to libp2p’sMultiaddr
or litep2p’sMultiaddr
when passed to the corresponding network backend.- Overview status of the network.
- Identifier of a peer of the network.
- A record stored in the DHT.
- An error during signing of a message.
Enums§
- Substream direction.
- Events received by the protocol from
Notifications
. - Error returned by the notification sink.
- Substream acceptance result.
Traits§
- Trait defining the behavior of a bandwidth sink.
- Message sink for peers.
- Networking backend.
- Provides ability to announce blocks to the network.
- Provides access to the networking DHT.
- Provides access to network-level event stream.
- Provides low-level API for manipulating network peers.
- Provides ability to send network requests.
- Supertrait defining the services provided by
NetworkBackend
service handle. - Signer with network identity
- Trait for providing information about the local network state
- Provides high-level status information about network.
- Provides an ability to set a fork sync request for a particular block.
- Trait defining the required functionality from a notification protocol configuration.
- A
NotificationSender
allows for sending notifications to a peer with a chosen protocol. - Reserved slot in the notifications buffer, ready to accept data.
- Notification service
- Trait defining required functionality from
PeerStore
. - Trait defining the required functionality from a request-response protocol configuration.