Module safe_network::messaging::data [−][src]
Expand description
Data messages that clients and nodes can send. Data messages and their possible responses.
Structs
Chunk data exchange.
Metadata (register and chunk holders) replication.
A Register
write operation.
Register data exchange.
A message indicating that an error occurred as a node was handling a client’s message.
The degree to which storage has been used. Expressed in values between 0-10, where each unit represents 10-percentage points.
Enums
Data commands - creating, updating, or removing data.
Data queries - retrieving data and inspecting their structure.
Errors that can occur when interactive with client messaging APIs.
The response to a query, containing the query result. Response operation id should match query operation_id
Register
read operations.
Register
write operations.
Network service messages that clients or nodes send in order to use the services, communicate and carry out the tasks.
Error type for an attempted conversion from a QueryResponse
variant to an expected wrapped
value.
Functions
Return operation Id of a chunk
Type Definitions
Derivable Id of an operation. Query/Response should return the same id for simple tracking purposes. TODO: make uniquer per requester for some operations
A specialised Result
type.