pub struct CovSubscription {
pub subscriber_mac: MacAddr,
pub subscriber_network: Option<NpduAddress>,
pub subscriber_process_identifier: u32,
pub monitored_object_identifier: ObjectIdentifier,
pub issue_confirmed_notifications: bool,
pub expires_at: Option<Instant>,
pub last_notified_observation: Option<CovObservation>,
pub monitored_property: Option<PropertyIdentifier>,
pub monitored_property_array_index: Option<u32>,
pub cov_increment: Option<f32>,
pub notification_kind: CovNotificationKind,
pub timestamped: bool,
}Expand description
Proposed COV subscription data. Table acceptance validates its canonical
identity and returns an immutable CovSubscriptionSnapshot for delivery.
Fields§
§subscriber_mac: MacAddrImmediate delivery MAC: the local subscriber or its current router.
subscriber_network: Option<NpduAddress>Routed source address when the subscriber is behind a BACnet router.
subscriber_process_identifier: u32Process identifier chosen by the subscriber.
monitored_object_identifier: ObjectIdentifierThe object being monitored.
issue_confirmed_notifications: boolNotification form. Mutable renewal data for ordinary/Single subscriptions; part of the canonical identity for Multiple references.
expires_at: Option<Instant>When this subscription expires (None = infinite lifetime), on tokio’s
clock: tokio::time::Instant::now().into_std() plus the lifetime,
which is Instant::now() plus it unless a test has paused the clock.
last_notified_observation: Option<CovObservation>Last delivered bounded observation, including specialized command fields.
monitored_property: Option<PropertyIdentifier>Monitored property for Single-property and Multiple-reference subscriptions.
monitored_property_array_index: Option<u32>Accepted property index; absent, zero and element indexes are independent.
cov_increment: Option<f32>COV increment override (SubscribeCOVProperty only).
notification_kind: CovNotificationKindNotification service family used for this subscription.
timestamped: boolWhether COVNotificationMultiple values should include timeOfChange.
Implementations§
Source§impl CovSubscription
impl CovSubscription
Sourcepub fn endpoint(&self) -> SubscriberEndpoint
pub fn endpoint(&self) -> SubscriberEndpoint
Current immediate transport route and original routed source.
Sourcepub fn key(&self) -> Result<CovSubscriptionKey, Error>
pub fn key(&self) -> Result<CovSubscriptionKey, Error>
Validate and derive the sole table identity from this proposed subscription.
Source§impl CovSubscription
impl CovSubscription
Sourcepub fn recipient(&self) -> CovRecipient
pub fn recipient(&self) -> CovRecipient
Original client address shared by subscription identity and accounting. Process, family and monitored coordinates additionally distinguish subscriptions.