Module reply

Module reply 

Source
Expand description

Reading what a device answered.

A device answers a property request with the property, or with PROP_LAST_STATUS standing in its place — refused, absent, out of reach. Every reader of a reply has to tell those two apart before it can do anything with the bytes, and a multi-property answer has to do it per position, against the keys that were asked for. That reasoning lives here rather than in each caller.

Nothing is copied: an Answer borrows from the reply it was read out of.

Enums§

Answer
What occupied one position of a reply.
EntriesError
Why a multi-property reply could not be read as one.

Functions§

entries
Split a CMD_PROP_ARE into per-position answers, paired with the keys they were asked for.
property
Read a single-property reply against the property that was asked for.
status_of
The status a bare PROP_LAST_STATUS reply reports, if that is what this frame is.