pub struct CensusWatchGuard { /* private fields */ }Expand description
Tracks presence and deletion observations made on this connection as a local safeguard; the server-side credential revocation remains authoritative.
Implementations§
Source§impl CensusWatchGuard
impl CensusWatchGuard
pub fn new() -> Self
pub fn observe(&mut self, event: &WatchEvent)
Sourcepub fn connection_dropped(&mut self)
pub fn connection_dropped(&mut self)
Clears observations after disconnect so missing events are not treated as proof of absence.
pub fn has_snapshot(&self) -> bool
pub fn check_publish(&self, census_key: &str, subject: &str) -> BusResult<()>
Trait Implementations§
Source§impl Clone for CensusWatchGuard
impl Clone for CensusWatchGuard
Source§impl Debug for CensusWatchGuard
impl Debug for CensusWatchGuard
Auto Trait Implementations§
impl Freeze for CensusWatchGuard
impl RefUnwindSafe for CensusWatchGuard
impl Send for CensusWatchGuard
impl Sync for CensusWatchGuard
impl Unpin for CensusWatchGuard
impl UnsafeUnpin for CensusWatchGuard
impl UnwindSafe for CensusWatchGuard
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