pub struct StatusWatch { /* private fields */ }Expand description
RAII-style watcher for runtime status changes.
Dropping the watcher releases the local subscription. Rust ownership scopes the subscription without a global stop method.
Implementations§
Source§impl StatusWatch
impl StatusWatch
Sourcepub fn current(&self) -> HealthReport
pub fn current(&self) -> HealthReport
Return the current cached status snapshot without waiting.
Sourcepub async fn recv(&mut self) -> Result<HealthReport>
pub async fn recv(&mut self) -> Result<HealthReport>
Wait for the next status change.
Auto Trait Implementations§
impl Freeze for StatusWatch
impl RefUnwindSafe for StatusWatch
impl Send for StatusWatch
impl Sync for StatusWatch
impl Unpin for StatusWatch
impl UnsafeUnpin for StatusWatch
impl UnwindSafe for StatusWatch
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