Crate bee_network

Source
Expand description

Networking layer for the Bee framework.

Modules§

integrated
Initializes an “integrated” version of the network layer, which is used in the Bee node.
standalone
Initializes a “standalone” version of the network layer.

Macros§

alias
A macro that creates a shorter representation of a PeerId. Mostly useful in logging scenarios.

Structs§

Keypair
An Ed25519 keypair.
Multiaddr
Representation of a Multiaddr.
NetworkCommandSender
Allows the user to send Commands to the network layer.
NetworkConfig
The network configuration.
NetworkConfigBuilder
A network configuration builder.
NetworkEventReceiver
Allows the user to receive Events published by the network layer.
NetworkHost
A node worker, that deals with accepting and initiating connections with remote peers.
PeerId
Identifier of a peer of the network.
PeerInfo
Additional information about a peer.
ServiceHost
A node worker, that deals with processing user commands, and publishing events.

Enums§

Command
Describes the commands accepted by the networking layer.
Error
Errors during network initialization.
Event
Describes the public events produced by the networking layer.
Origin
Describes direction of an established connection.
PeerRelation
Describes the relation with a peer.
Protocol
Protocol describes all possible multiaddress protocols.
PublicKey
The public key of a node’s identity keypair.

Type Aliases§

GossipReceiver
A type alias for an unbounded channel receiver.
GossipSender
A type alias for an unbounded channel sender.