pub enum EventSource {
UPnPNotification {
subscription_id: String,
},
PollingDetection {
poll_interval: Duration,
},
ResyncOperation,
}Expand description
Source of an event - indicates whether it came from UPnP events or polling
Variants§
UPnPNotification
Event came from a UPnP NOTIFY message
PollingDetection
Event was generated by polling device state
ResyncOperation
Event was generated during resync operation
Trait Implementations§
Source§impl Clone for EventSource
impl Clone for EventSource
Source§fn clone(&self) -> EventSource
fn clone(&self) -> EventSource
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 moreSource§impl Debug for EventSource
impl Debug for EventSource
Source§impl<'de> Deserialize<'de> for EventSource
impl<'de> Deserialize<'de> for EventSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl Send for EventSource
impl Sync for EventSource
impl Unpin for EventSource
impl UnsafeUnpin for EventSource
impl UnwindSafe for EventSource
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