LLDB mainline
lldb_protocol::mcp::Response Struct Reference

A response to a request, either an error or a result. More...

#include <Protocol.h>

Public Attributes

Id id = 0
 The request id.
std::variant< Error, llvm::json::Value > result
 The result of the request, either an Error or the JSON value of the response.

Detailed Description

A response to a request, either an error or a result.

Definition at line 77 of file Protocol.h.

Member Data Documentation

◆ id

Id lldb_protocol::mcp::Response::id = 0

◆ result

std::variant<Error, llvm::json::Value> lldb_protocol::mcp::Response::result

The result of the request, either an Error or the JSON value of the response.

Definition at line 82 of file Protocol.h.

Referenced by lldb_protocol::mcp::ProtocolDescriptor::Extract(), lldb_protocol::mcp::fromJSON(), lldb_protocol::mcp::operator==(), and lldb_protocol::mcp::toJSON().


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