Module storage

Source
Expand description

Storage types for GraphEntry and Chunk

Structs§

Chunk
Chunk, an immutable chunk of data
ChunkAddress
Address of a crate::storage::chunks::Chunk.
GraphEntry
A generic GraphEntry on the Network.
GraphEntryAddress
Address of a crate::storage::graph::GraphEntry.
Pointer
Pointer, a mutable address pointing to other data on the Network It is stored at the owner’s public key and can only be updated by the owner
PointerAddress
Address of a crate::storage::pointer::Pointer It is derived from the owner’s public key
RecordHeader
Scratchpad
Scratchpad, a mutable space for encrypted data on the Network
ScratchpadAddress
Address of a crate::storage::scratchpad::Scratchpad It is derived from the owner’s public key

Enums§

AddressParseError
DataTypes
Data types that natively suppported by autonomi network.
PointerTarget
The target of a pointer, the address it points to
RecordKind
To be used between client and nodes, hence need to indicate whehter payment info involved.
ValidationType
Indicates the type of the record content. This is to be only used within the node instance to reflect different content version. Hence, only need to have two entries: Chunk and NonChunk.

Functions§

try_deserialize_record
Utility to deserialize a KAD::Record into any type. Use RecordHeader::from_record if you want the RecordHeader instead.
try_serialize_record
Utility to serialize the provided data along with the RecordKind to be stored as Record::value Returns Bytes to avoid accidental clone allocations

Type Aliases§

GraphContent
Content of a graph, limited to 32 bytes