Module p2p

Source

Modules§

bootstrap
callbacks
channels
connection
disconnection
disconnection_effectful
fuzzer
identify
identity
kad
libp2p_identity
A node’s network identity keys.
multiaddr
Implementation of multiaddr in Rust.
network
noise
p2p_effects 🔒
peer
pnet
pnet_effectful
pubsub
rpc
scheduler
scheduler_effectful
select
service
service_impl
stream
token
webrtc
yamux

Macros§

impl_into_global_action 🔒

Structs§

CID
ClosestPeers
ConnectionAddr
Data
DataSized
Message
P2pCallbacks
P2pConfig
P2pLimits
P2pMeshsubConfig
P2pNetworkConnectionState
P2pNetworkKadBucket
P2pNetworkKadDist
Kademlia distance between two nodes, calculated as XOR of their keys.
P2pNetworkKadEntry
P2pNetworkKadKey
Kademlia key, sha256 of the node’s peer id.
P2pNetworkKadLatestRequestPeers
P2pNetworkKadRoutingTable
Kademlia routing table, with K parameter, the maximum number of records for each bucket. Usually it is set to 20.
P2pNetworkKadRoutingTableInsertError
P2pNetworkKadState
P2pNetworkKademliaMultiaddrError
P2pNetworkNoiseState
P2pNetworkPnetState
P2pNetworkPubsubClientState
State of a pubsub client connected to a peer.
P2pNetworkPubsubClientTopicState
P2pNetworkPubsubMessageCacheId
P2pNetworkPubsubState
State of the P2P Network PubSub system.
P2pNetworkRpcState
P2pNetworkSchedulerState
P2pNetworkSelectState
P2pNetworkState
P2pNetworkStreamState
P2pNetworkYamuxState
P2pPeerState
P2pPeerStatusReady
P2pState
P2pTimeouts
PeerId
Pk
Record
Sk
StreamState
YamuxFlags
YamuxPing

Enums§

BroadcastMessageId
ConnectionType
Limit
MioCmd
The state machine sends commands to the service.
MioEvent
The mio service reports events.
NoiseError
P2pAction
P2pChannelEvent
P2pConnectionEvent
P2pEffectfulAction
P2pEvent
P2pInitializeAction
P2pNetworkAction
P2pNetworkAuthState
P2pNetworkConnectionCloseReason
P2pNetworkConnectionError
P2p connection error.
P2pNetworkConnectionMuxState
P2pNetworkEffectfulAction
P2pNetworkKadAction
Kademlia actions.
P2pNetworkKadBootstrapAction
P2pNetworkKadEffectfulAction
P2pNetworkKadEntryTryFromError
P2pNetworkKadKeyError
P2pNetworkKadLatestRequestPeerKind
P2pNetworkKadRequestAction
P2pNetworkKadStatus
Kademlia status.
P2pNetworkKademliaAction
Kademlia system actions
P2pNetworkKademliaPeerIdError
P2pNetworkKademliaRpcFromMessageError
P2pNetworkKademliaRpcPeerTryFromError
P2pNetworkKademliaRpcReply
P2pNetworkKademliaRpcRequest
P2pNetworkKademliaStreamAction
Kademlia stream related actions.
P2pNetworkNoiseAction
P2pNetworkNoiseStateInner
P2pNetworkPnetAction
P2pNetworkPnetEffectfulAction
P2pNetworkPubsubAction
Actions that can occur within the P2P Network PubSub system.
P2pNetworkPubsubEffectfulAction
Eeffectful actions within the P2P Network PubSub system.
P2pNetworkRpcAction
P2pNetworkSchedulerAction
P2pNetworkSchedulerEffectfulAction
P2pNetworkSelectAction
P2pNetworkServiceError
P2pNetworkStreamHandlerState
P2pNetworkStreamProtobufError
Errors that might happen while handling protobuf messages received via a stream.
P2pNetworkYamuxAction
P2pPeerAction
P2pPeerStatus
RpcMessage
RpcStreamId
SelectKind
SocketAddrTryFromMultiaddrError
YamuxStreamKind

Constants§

DEVNET_SEEDS

Traits§

Action
P2pActionTrait
P2pChannelsService
P2pConnectionService
P2pCryptoService
P2pDisconnectionService
P2pMioService
P2pNetworkService
P2pService
P2pStateTrait
P2pStore
TimeService
Time service.

Functions§

node_p2p_effects

Type Aliases§

StreamId