ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
read_frame_result Struct Reference

Result of a read_frame operation. More...

#include <connection.hpp>

Collaboration diagram for read_frame_result:
Collaboration graph

Public Attributes

std::expected< messaging::frame, ores::utility::serialization::error_code > frame
 
std::optional< std::uint32_t > failed_correlation_id
 Correlation ID from the header when CRC validation fails.
 

Detailed Description

Result of a read_frame operation.

When CRC validation fails, we still have the header information including correlation_id. This allows the caller to fail the specific pending request rather than letting it timeout.

Member Data Documentation

◆ failed_correlation_id

std::optional<std::uint32_t> failed_correlation_id

Correlation ID from the header when CRC validation fails.

Set only when the header was successfully parsed but CRC validation failed. Use this to fail the pending request with an error response.