A single structured message as delivered by the channel. More...
#include <message_channel.hpp>
Public Member Functions | |
| std::string_view | as_text () const |
| View the payload as a text string. | |
Public Attributes | |
| MessageKind | kind = MessageKind::Binary |
| std::vector< std::uint8_t > | payload |
A single structured message as delivered by the channel.
|
inline |
View the payload as a text string.
Only meaningful for kind == MessageKind::Text.
| MessageKind pulp::runtime::Message::kind = MessageKind::Binary |
| std::vector<std::uint8_t> pulp::runtime::Message::payload |