Skip to main content

EventParser

Trait EventParser 

Source
pub trait EventParser: Send + Sync {
    type EventData: Send + Sync + 'static;

    // Required methods
    fn parse_upnp_event(&self, xml: &str) -> Result<Self::EventData>;
    fn service_type(&self) -> Service;
}
Expand description

Trait for parsing service-specific events from XML

Required Associated Types§

Source

type EventData: Send + Sync + 'static

The event data type this parser produces

Required Methods§

Source

fn parse_upnp_event(&self, xml: &str) -> Result<Self::EventData>

Parse UPnP event XML and extract service-specific event data

Source

fn service_type(&self) -> Service

Get the service type this parser handles

Implementors§