Skip to main content

encode_read_request

Function encode_read_request 

Source
pub fn encode_read_request<A, E>(
    buf: &mut [u8],
    attribute_paths: A,
    event_paths: E,
    fabric_filtered: bool,
) -> Result<&[u8]>
where A: IntoIterator<Item = AttributePath>, E: IntoIterator<Item = EventPath>,
Expand description

Writes a ReadRequestMessage from paths a caller supplies.

Taking iterators rather than slices keeps the builder usable from a generator: a controller reading every endpoint does not have to materialise the path list first.