Crate ant_networking Copy item path Source time Addresses A list of addresses of a peer in the routing table. GetRecordCfg The various settings to apply to when fetching a record from network 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. PutRecordCfg The various settings related to writing a record to the network. SwarmDriver SwarmLocalState Snapshot of information kept in the Swarm’s local state GetRecordError GetRecord Query errors 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. RetryStrategy A strategy that translates into a configuration for exponential backoff.
The first retry is done after 2 seconds, after which the backoff is roughly doubled each time.
The interval does not go beyond 32 seconds. So the intervals increase from 2 to 4, to 8, to 16, to 32 seconds and
all attempts are made at most 32 seconds apart. VerificationKind The methods in which verification on a PUT can be carried out. MAX_PACKET_SIZE What is the largest packet to send over the network.
Records larger than this will be rejected. close_group_majority Majority of a given group (i.e. > 1/2). get_graph_entry_from_record 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.