nixd
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
nixd::rpc::ExprValueResponse Struct Reference

#include <Protocol.h>

Public Types

enum  ResultKinds { NotFound , NotEvaluated , EvalError , OK }
 
enum  ValueKinds { Int , Float }
 Opaque data, the value of the expr. More...
 

Public Attributes

int ResultKind
 
std::int64_t ValueID
 The value ID, for future reference.
 
int ValueKind
 

Detailed Description

Definition at line 36 of file include/nixd/Protocol/Protocol.h.

Member Enumeration Documentation

◆ ResultKinds

Enumerator
NotFound 

The expr is not found in the registered bytecodes.

NotEvaluated 

The expr is found, but the value is not evaluated. e.g. too deep.

EvalError 

Encountered an error when evaluating the value.

OK 

The value is available.

Definition at line 37 of file include/nixd/Protocol/Protocol.h.

◆ ValueKinds

Opaque data, the value of the expr.

Enumerator
Int 
Float 

Definition at line 58 of file include/nixd/Protocol/Protocol.h.

Member Data Documentation

◆ ResultKind

int nixd::rpc::ExprValueResponse::ResultKind

Definition at line 50 of file include/nixd/Protocol/Protocol.h.

Referenced by nixd::rpc::fromJSON().

◆ ValueID

std::int64_t nixd::rpc::ExprValueResponse::ValueID

The value ID, for future reference.

We may want to query the value of the same expr multiple times, with more detailed information.

Definition at line 55 of file include/nixd/Protocol/Protocol.h.

Referenced by nixd::rpc::fromJSON().

◆ ValueKind

int nixd::rpc::ExprValueResponse::ValueKind

Definition at line 62 of file include/nixd/Protocol/Protocol.h.

Referenced by nixd::rpc::fromJSON().


The documentation for this struct was generated from the following file: