pub struct WatchTracker { /* private fields */ }Expand description
Tracks notifications separately from acknowledged inventory/key reads.
Call opened for each new subscription; duplicate closes never trigger retries.
Implementations§
Source§impl WatchTracker
impl WatchTracker
pub fn inventory_read(&mut self, view: impl Into<String>)
pub fn keys_read(&mut self, keys: impl Into<String>)
pub fn opened(&mut self)
pub fn notice(&mut self, notice: &WatchNotice) -> WatchAction
pub fn closed(&mut self) -> WatchAction
Sourcepub fn list_result(&mut self, accepted: bool) -> WatchAction
pub fn list_result(&mut self, accepted: bool) -> WatchAction
Feed the one confirming list read after ReadListOnce: true means success.
A transport failure is instead fed to route_lost.
pub fn route_lost(&mut self) -> WatchAction
pub fn unknown_method(&mut self) -> WatchAction
pub fn refused(&mut self) -> WatchAction
Trait Implementations§
Source§impl Debug for WatchTracker
impl Debug for WatchTracker
Auto Trait Implementations§
impl Forget for WatchTracker
impl Freeze for WatchTracker
impl Move for WatchTracker
impl RefUnwindSafe for WatchTracker
impl Send for WatchTrackerwhere
RawVecInner: Send,
impl Sync for WatchTrackerwhere
RawVecInner: Sync,
impl Unpin for WatchTracker
impl UnsafeUnpin for WatchTracker
impl UnwindSafe for WatchTrackerwhere
RawVecInner: 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