pub enum HealthMessage<K, Route> {
Observe {
component: K,
version: ObservationVersion,
status: HealthStatus,
},
Remove {
component: K,
version: ObservationVersion,
},
Query {
reply_to: Route,
},
}Expand description
Commands accepted by Health.
Variants§
Observe
Commit versioned evidence for a present component.
Fields
§
component: KComponent identity.
§
version: ObservationVersionEvidence version within that component’s stream.
§
status: HealthStatusNew factual classification.
Remove
Commit a versioned tombstone.
Fields
§
component: KComponent identity.
§
version: ObservationVersionRemoval version within that component’s stream.
Query
Return a point-in-time report to a typed recipient.
Fields
§
reply_to: RouteRecipient whose protocol accepts HealthReport<K>.
Auto Trait Implementations§
impl<K, Route> Freeze for HealthMessage<K, Route>
impl<K, Route> RefUnwindSafe for HealthMessage<K, Route>where
K: RefUnwindSafe,
Route: RefUnwindSafe,
impl<K, Route> Send for HealthMessage<K, Route>
impl<K, Route> Sync for HealthMessage<K, Route>
impl<K, Route> Unpin for HealthMessage<K, Route>
impl<K, Route> UnsafeUnpin for HealthMessage<K, Route>where
K: UnsafeUnpin,
Route: UnsafeUnpin,
impl<K, Route> UnwindSafe for HealthMessage<K, Route>where
K: UnwindSafe,
Route: 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