pub struct WatchStatus<P> {
pub current: Option<P>,
pub mode: WatchMode,
}Expand description
Result of a watch() operation
Contains both the current cached value (if any) and information about how future updates will be delivered.
Fields§
§current: Option<P>Current cached value of the property (if any)
mode: WatchModeHow updates will be delivered
Check this to understand whether real-time events are working:
Events: Full real-time supportPolling: Degraded but functionalCacheOnly: Manual refresh only
Implementations§
Source§impl<P> WatchStatus<P>
impl<P> WatchStatus<P>
Trait Implementations§
Source§impl<P: Clone> Clone for WatchStatus<P>
impl<P: Clone> Clone for WatchStatus<P>
Source§fn clone(&self) -> WatchStatus<P>
fn clone(&self) -> WatchStatus<P>
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<P> Freeze for WatchStatus<P>where
P: Freeze,
impl<P> RefUnwindSafe for WatchStatus<P>where
P: RefUnwindSafe,
impl<P> Send for WatchStatus<P>where
P: Send,
impl<P> Sync for WatchStatus<P>where
P: Sync,
impl<P> Unpin for WatchStatus<P>where
P: Unpin,
impl<P> UnsafeUnpin for WatchStatus<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for WatchStatus<P>where
P: UnwindSafe,
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