entries

Function entries 

Source
pub fn entries<'a>(
    requested: &'a [u32],
    reply: &'a [u8],
) -> Result<impl Iterator<Item = Result<(u32, Answer<'a>), ParseError>> + 'a, EntriesError>
Expand description

Split a CMD_PROP_ARE into per-position answers, paired with the keys they were asked for.

A device may answer fewer positions than were asked for — it stops before a reply overflows rather than truncating one — so the iterator simply ends, and the caller reissues whatever is left over.