pub struct NotificationPayload {
pub subscription_id: String,
pub event_xml: String,
pub received_at: Instant,
}Expand description
Generic notification payload for UPnP event notifications.
This represents an unparsed UPnP event notification that has been received via HTTP callback. It contains only the subscription ID, raw XML body, and when the notification arrived — no device-specific context.
Fields§
§subscription_id: StringThe subscription ID from the UPnP SID header
event_xml: StringThe raw XML event body
received_at: InstantWhen this notification reached the router, on the monotonic clock.
This is the earliest instant at which the process can be said to have
observed the values in event_xml, and downstream consumers order
writes by it. It is deliberately Instant and not SystemTime: an
ordering built on the wall clock would reverse itself whenever NTP
stepped the clock backwards.
For an event that arrived before its SID was registered, this is the original arrival instant, not the replay instant — a notification held in the pending buffer for seconds must not be treated as freshly observed when it is finally replayed.
Trait Implementations§
Source§impl Clone for NotificationPayload
impl Clone for NotificationPayload
Source§fn clone(&self) -> NotificationPayload
fn clone(&self) -> NotificationPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more