Skip to main content

rustbac_client/
cov.rs

1use crate::ClientDataValue;
2use rustbac_core::types::{ObjectId, PropertyId};
3use rustbac_datalink::DataLinkAddress;
4
5#[derive(Debug, Clone, PartialEq)]
6pub struct CovPropertyValue {
7    pub property_id: PropertyId,
8    pub array_index: Option<u32>,
9    pub value: ClientDataValue,
10    pub priority: Option<u8>,
11}
12
13#[derive(Debug, Clone, PartialEq)]
14pub struct CovNotification {
15    pub source: DataLinkAddress,
16    pub confirmed: bool,
17    pub subscriber_process_id: u32,
18    pub initiating_device_id: ObjectId,
19    pub monitored_object_id: ObjectId,
20    pub time_remaining_seconds: u32,
21    pub values: Vec<CovPropertyValue>,
22}