Module traits

Source
Expand description

Traits defined by sc-network.

Structs§

KademliaKey
The (opaque) key of a record.
NetworkStatus
Overview status of the network.
SigningError
An error during signing of a message.

Enums§

Direction
Substream direction.
NotificationEvent
Events received by the protocol from Notifications.
NotificationSenderError
Error returned by the notification sink.
ValidationResult
Substream acceptance result.

Traits§

BandwidthSink
Trait defining the behavior of a bandwidth sink.
MessageSink
Message sink for peers.
NetworkBackend
Networking backend.
NetworkBlock
Provides ability to announce blocks to the network.
NetworkDHTProvider
Provides access to the networking DHT.
NetworkEventStream
Provides access to network-level event stream.
NetworkPeers
Provides low-level API for manipulating network peers.
NetworkRequest
Provides ability to send network requests.
NetworkService
Supertrait defining the services provided by NetworkBackend service handle.
NetworkSigner
Signer with network identity
NetworkStateInfo
Trait for providing information about the local network state
NetworkStatusProvider
Provides high-level status information about network.
NetworkSyncForkRequest
Provides an ability to set a fork sync request for a particular block.
NotificationConfig
Trait defining the required functionality from a notification protocol configuration.
NotificationSender
A NotificationSender allows for sending notifications to a peer with a chosen protocol.
NotificationSenderReady
Reserved slot in the notifications buffer, ready to accept data.
NotificationService
Notification service
PeerStore
Trait defining required functionality from PeerStore.
RequestResponseConfig
Trait defining the required functionality from a request-response protocol configuration.