pub struct EnrichedEvent {
pub registration_id: RegistrationId,
pub speaker_ip: IpAddr,
pub service: Service,
pub event_source: EventSource,
pub timestamp: SystemTime,
pub event_data: EventData,
}Expand description
An enriched event that includes context and source information
Fields§
§registration_id: RegistrationIdRegistration ID this event belongs to
speaker_ip: IpAddrIP address of the speaker that generated this event
service: ServiceUPnP service that generated this event
event_source: EventSourceSource of this event (UPnP notification or polling)
timestamp: SystemTimeTimestamp when this event was processed
event_data: EventDataThe actual event data
Implementations§
Source§impl EnrichedEvent
impl EnrichedEvent
Sourcepub fn new(
registration_id: RegistrationId,
speaker_ip: IpAddr,
service: Service,
event_source: EventSource,
event_data: EventData,
) -> Self
pub fn new( registration_id: RegistrationId, speaker_ip: IpAddr, service: Service, event_source: EventSource, event_data: EventData, ) -> Self
Create a new enriched event
Trait Implementations§
Source§impl Clone for EnrichedEvent
impl Clone for EnrichedEvent
Source§fn clone(&self) -> EnrichedEvent
fn clone(&self) -> EnrichedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EnrichedEvent
impl RefUnwindSafe for EnrichedEvent
impl Send for EnrichedEvent
impl Sync for EnrichedEvent
impl Unpin for EnrichedEvent
impl UnsafeUnpin for EnrichedEvent
impl UnwindSafe for EnrichedEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more