Skip to main content

parse_write_response

Function parse_write_response 

Source
pub fn parse_write_response(
    bytes: &[u8],
) -> Result<Vec<(AttributePath, ImStatus)>, ImError>
Expand description

Parse a WriteResponseMessage into per-path statuses.

The write response carries one AttributeStatusIB per written path — including the success case — so the result is a status per path, not a single message-level status. A message with no WriteResponses member yields an empty result.

§Errors

Returns ImError if the message is not a struct, an AttributeStatusIB is missing its path or status, or a path value is out of range.