pub struct WorkerObservation {
pub worker_id: String,
pub configured: bool,
pub in_daemon_pool: bool,
pub reachable: bool,
pub admin_disabled: bool,
pub temporarily_bypassed: bool,
pub facts_known: bool,
pub command_admissible: bool,
}Expand description
One worker’s observed state across the desired/live dimensions. Plain data so the classification is pure and unit-testable.
Fields§
§worker_id: String§configured: boolPresent in workers.toml (desired).
in_daemon_pool: boolPresent in the daemon’s in-memory pool (joined).
reachable: boolAnswering probes right now.
admin_disabled: boolAdministratively disabled.
temporarily_bypassed: boolUnder a temporary bypass (e.g. disk pressure) expected to recover.
facts_known: boolLast-known capability facts are present and fresh enough to trust.
command_admissible: boolAdmissible for the selected command (capability-checked).
Implementations§
Trait Implementations§
Source§impl Clone for WorkerObservation
impl Clone for WorkerObservation
Source§impl Debug for WorkerObservation
impl Debug for WorkerObservation
impl Eq for WorkerObservation
Source§impl PartialEq for WorkerObservation
impl PartialEq for WorkerObservation
impl StructuralPartialEq for WorkerObservation
Auto Trait Implementations§
impl Freeze for WorkerObservation
impl RefUnwindSafe for WorkerObservation
impl Send for WorkerObservation
impl Sync for WorkerObservation
impl Unpin for WorkerObservation
impl UnsafeUnpin for WorkerObservation
impl UnwindSafe for WorkerObservation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.