Modules§
Structs§
- The various settings to apply to when fetching a record from network
- A measurement of a monotonically nondecreasing clock. Opaque and useful only with
Duration. - Wasm32 target arch does not support
timeor spawning via tokio so we shim in alternatives here when building for that architecture Interval returned byintervalandinterval_at. - API to interact with the underlying Swarm
- A
RecordStorethat stores records on disk. - The various settings related to writing a record to the network.
- Snapshot of information kept in the Swarm’s local state
Enums§
- GetRecord Query errors
- Channel to send the
Responsethrough. - Network Errors
- Events forwarded by the underlying Network; to be used by the upper layers
- The methods in which verification on a PUT can be carried out.
Constants§
- What is the largest packet to send over the network. Records larger than this will be rejected.
- The count of peers that will be considered as close to a record target, that a replication of the record shall be sent/accepted to/by the peer.
Functions§
- Majority of a given group (i.e. > 1/2).
- Get the value of the provided Quorum
- Tries to get the signed spend out of a record as is, double spends are returned together as is.
- Get the signed spend out of a record. Double spends are returned as an error
- Wasm32 target arch does not support
timeor spawning via tokio so we shim in alternatives here when building for that architecture Creates newIntervalthat yields with interval ofperiod. The first tick completes immediately. The defaultMissedTickBehaviorisBurst, but this can be configured by callingset_missed_tick_behavior. - Verifies if
Multiaddrcontains IPv4 address that is not global. This is used to filter out unroutable addresses from the Kademlia routing table. - Wasm32 target arch does not support
timeor spawning via tokio so we shim in alternatives here when building for that architecture Waits untildurationhas elapsed. - Sort the provided peers by their distance to the given
NetworkAddress. Return with the closest expected number of entries if has. - Sort the provided peers by their distance to the given
KBucketKey. Return with the closest expected number of entries if has. - Wasm32 target arch does not support
timeor spawning via tokio so we shim in alternatives here when building for that architecture Spawns a new asynchronous task, returning aJoinHandlefor it.
Type Aliases§
- The type of quote for a selected payee.