Expand description
Rust Implementation of the hyperswarm DHT
Modules§
- commands
- Query Commands
Structs§
- Bootstrap
Future - Bootstrapped
- Command
Query - Represents an incoming query with a custom command.
- Command
Query Response - Outgoing response to a
CommandQuery - Custom
Command Request - Custom incoming request to a registered command
- DhtConfig
- External
Command - IdBytes
- A 32 byte identifier for a node participating in the DHT.
- InResponse
- Recied response data along with metadata
- Node
- OutRequest
Builder - Peer
- PeerId
- Periodic
Job - Query
Args - QueryId
- Unique identifier for an active query.
- Query
Next - Query
Result - The result of a
Query. - Reply
MsgData - ReplyMsgData is the Reply data structure that is encoded to/from bytes
- Request
MsgData - RequestMsgData is the Request data structure that is encoded to/from bytes
- Request
MsgData Inner - Rpc
- RpcDht
Request Future - A future that polls RpcDht for events while waiting for a specific response.
- RpcInner
- RpcInner
Builder - Builder for
RpcInner.
Enums§
- Command
- TODO This is encoded as u8 which might not always be true
- Commit
- The kinds of
Commita Query can have. - Error
- Internal
Command - TODO in js this is de/encoded with c.uint which is for a variable sized unsigned integer.
- Request
Error - Response
Error - Response
Ok - RpcEvent
- RpcInner
Builder Error - Error type for RpcInnerBuilder
Constants§
- DEFAULT_
BOOTSTRAP - The publicly available hyperswarm DHT addresses
- IMMUTABLE_
STORE_ CMD - The command identifier for immutable storage
- MUTABLE_
STORE_ CMD - The command identifier for
Mutablestorage - PEERS_
CMD - The command identifier to (un)announce/lookup peers
Functions§
- fill_
random_ bytes - Fill the slice with random bytes
- generic_
hash