pub struct EventProcessor;Expand description
Generic event processor that can handle events from any service
Implementations§
Source§impl EventProcessor
impl EventProcessor
Sourcepub fn with_default_parsers() -> Self
pub fn with_default_parsers() -> Self
Create a new event processor (alias for compatibility)
Sourcepub fn process_upnp_event(
&self,
speaker_ip: IpAddr,
service: Service,
subscription_id: String,
event_xml: &str,
) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
pub fn process_upnp_event( &self, speaker_ip: IpAddr, service: Service, subscription_id: String, event_xml: &str, ) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
Process a UPnP event notification using direct event type parsing
This method calls EventType::from_xml() directly based on the service type.
Sourcepub fn process_polling_event(
&self,
speaker_ip: IpAddr,
service: Service,
poll_interval: Duration,
event_xml: &str,
) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
pub fn process_polling_event( &self, speaker_ip: IpAddr, service: Service, poll_interval: Duration, event_xml: &str, ) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
Process a polling-detected event using direct event type parsing
Sourcepub fn process_resync_event(
&self,
speaker_ip: IpAddr,
service: Service,
event_xml: &str,
) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
pub fn process_resync_event( &self, speaker_ip: IpAddr, service: Service, event_xml: &str, ) -> Result<EnrichedEvent<Box<dyn Any + Send + Sync>>>
Process a resync event using direct event type parsing
Sourcepub fn supports_service(&self, service: &Service) -> bool
pub fn supports_service(&self, service: &Service) -> bool
Check if a service is supported by this processor
Sourcepub fn supported_services(&self) -> Vec<Service>
pub fn supported_services(&self) -> Vec<Service>
Get all supported services
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventProcessor
impl RefUnwindSafe for EventProcessor
impl Send for EventProcessor
impl Sync for EventProcessor
impl Unpin for EventProcessor
impl UnsafeUnpin for EventProcessor
impl UnwindSafe for EventProcessor
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