pub enum WatchMode {
Events,
Polling,
CacheOnly,
}Expand description
How property updates will be delivered after calling watch()
This enum indicates the mechanism that will be used to receive property updates. The SDK automatically selects the best available method.
Variants§
Events
UPnP event subscription is active - real-time updates will be received
This is the preferred mode, providing immediate notifications when properties change on the device.
Polling
UPnP subscription failed, updates may come via polling fallback
The event manager was configured but subscription failed (possibly due to firewall). The SDK’s polling fallback may still provide updates, but they won’t be real-time.
CacheOnly
No event manager configured - cache-only mode
Properties will only update when explicitly fetched via fetch().
Call system.configure_events() to enable automatic updates.
Trait Implementations§
impl Copy for WatchMode
impl Eq for WatchMode
impl StructuralPartialEq for WatchMode
Auto Trait Implementations§
impl Freeze for WatchMode
impl RefUnwindSafe for WatchMode
impl Send for WatchMode
impl Sync for WatchMode
impl Unpin for WatchMode
impl UnsafeUnpin for WatchMode
impl UnwindSafe for WatchMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.