Expand description
Implementation of the Node in SAFE Network.
Modules§
Structs§
- Node
Builder - Helper to build and run a Node
- Node
Events Channel - Channel where users of the public API can listen to events broadcasted by the node.
- Running
Node - Once a node is started and running, the user obtains
a
NodeRunning
object which can be used to interact with it.
Enums§
- Error
- Internal node error.
- Marker
- Public Markers for generating log output, These generate appropriate log level output and consistent strings. Changing these log markers is a breaking change.
- Node
Event - Type of events broadcasted by the node to the public API.
- PutValidation
Error - Put validation errors.
Constants§
- PERIODIC_
REPLICATION_ INTERVAL_ MAX_ S - Interval to trigger replication of all records to all peers. This is the max time it should take. Minimum interval at any node will be half this
Functions§
- 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.
Type Aliases§
- Node
Events Receiver - Type of channel receiver where events are broadcasted to by the node.