Skip to main content

Crate hyperswarm

Crate hyperswarm 

Source
Expand description

Hyperswarm - Peer-to-peer networking with topic-based discovery

Structs§

ConnectFuture
Connection
ConnectionEvent
Event emitted when a connection is established
ConnectionInfo
Information about an active connection
ConnectionSet
A set of connections indexed by public key for deduplication
ConnectionStream
Stream that yields connection events (both client and server)
DhtConfig
FlushAnnouncesAndLookups
Keypair
PeerDiscovery
PeerInfo
Information about a discovered peer
PeerQueue
Priority queue for scheduling peer connections
PublicKey
QueuedPeer
Entry in the connection queue
RetryEntry
A scheduled retry for a peer
RetryTimer
Timer for managing peer retry scheduling
Swarm
The main Hyperswarm instance
SwarmConfig
Configuration for Swarm behavior
Topic
A 32 byte identifier for a node participating in the DHT.

Enums§

AddResult
Result of adding a connection to the set
ConnectionState
Connection lifecycle state
Error
Error type for hyperswarm operations
JoinOpts
PeerOrigin
How we learned about this peer
Priority
Priority levels for peer connection attempts
SwarmEvent
TrustLevel
Trust level based on connection history

Type Aliases§

Result
Result type alias for hyperswarm operations