1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! The result of reading one referenced property (`BACnetPropertyAccessResult`,
//! Clause 21): the element type of a Global Group's Present_Value array
//! (Clause 12.50.7).
use BACnetDeviceObjectPropertyReference;
use crate;
use cratePropertyValue;
/// What reading one property produced: the value, or the error the read
/// failed with (the `access-result` choice of `BACnetPropertyAccessResult`).
///
/// On the wire the value sits inside context tag `[4]` and the error, an
/// application-tagged class then code, inside context tag `[5]`.
/// A property reference together with what reading it produced
/// (`BACnetPropertyAccessResult`, Clause 21).
///
/// The reference goes out exactly as a [`BACnetDeviceObjectPropertyReference`]
/// does, context tags `[0]` to `[3]` with the array index and the device
/// optional, and the [`AccessResult`] follows. The codec is
/// `bacnet_encoding::constructed::{encode_property_access_result,
/// decode_property_access_result}`.