#[non_exhaustive]pub struct WatchState {
pub config: ProxyConfig,
pub health: WatchHealth,
}Expand description
One internally consistent observation of a watcher.
ProxyWatcher::current and ProxyWatcher::health remain convenient independent
reads. Use ProxyWatcher::state when the configuration and liveness must describe
the same instant: both halves are copied while holding the watcher’s shared mutex once.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.config: ProxyConfigMost recent proxy configuration.
health: WatchHealthRoute and backend-thread liveness at the same observation point.
Trait Implementations§
Source§impl Clone for WatchState
impl Clone for WatchState
Source§impl Debug for WatchState
impl Debug for WatchState
impl Eq for WatchState
Source§impl PartialEq for WatchState
impl PartialEq for WatchState
impl StructuralPartialEq for WatchState
Auto Trait Implementations§
impl Freeze for WatchState
impl RefUnwindSafe for WatchState
impl Send for WatchState
impl Sync for WatchState
impl Unpin for WatchState
impl UnsafeUnpin for WatchState
impl UnwindSafe for WatchState
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