Crate ant_networking

Source

Modules§

time

Structs§

Addresses
A list of addresses of a peer in the routing table.
Instant
Copyright 2024 MaidSafe.net limited.
Interval
Interval returned by interval and interval_at.
Network
API to interact with the underlying Swarm
NetworkBuilder
NodeRecordStore
A RecordStore that stores records on disk.
SwarmDriver
SwarmLocalState
Snapshot of information kept in the Swarm’s local state

Enums§

MsgResponder
Channel to send the Response through.
NetworkError
Network Errors
NetworkEvent
Events forwarded by the underlying Network; to be used by the upper layers
NodeIssue
ResponseQuorum
Specifies the minimum number of distinct nodes that must be successfully contacted in order for a query to succeed.

Constants§

MAX_PACKET_SIZE
What is the largest packet to send over the network. Records larger than this will be rejected.

Functions§

close_group_majority
Majority of a given group (i.e. > 1/2).
interval
Creates new Interval that yields with interval of period. The first tick completes immediately. The default MissedTickBehavior is Burst, but this can be configured by calling set_missed_tick_behavior.
multiaddr_is_global
Verifies if Multiaddr contains IPv4 address that is not global. This is used to filter out unroutable addresses from the Kademlia routing table.
sleep
Waits until duration has elapsed.
sort_peers_by_key
Sort the provided peers by their distance to the given KBucketKey. Return with the closest expected number of entries it has.
spawn
Spawns a new asynchronous task, returning a JoinHandle for it.