pub struct StatusReply {
pub state: SupervisorState,
pub engine: EngineHealth,
pub latest_action: Option<ActionRecord>,
pub protocol_version: u32,
}Expand description
Status payload — the spec’s three honest questions.
state— is the operator-intent flag on?engine— can the daemon see the engine right now?latest_action— what was my most recent decision?
All three fields are mandatory on the wire. A None on
latest_action means “I haven’t acted yet since boot”,
which is a truthful answer; it is not the same as “I’m
suppressing this field”. Structural honesty beats
convenience here.
Fields§
§state: SupervisorState§engine: EngineHealth§latest_action: Option<ActionRecord>§protocol_version: u32Trait Implementations§
Source§impl Clone for StatusReply
impl Clone for StatusReply
Source§impl Debug for StatusReply
impl Debug for StatusReply
Source§impl<'de> Deserialize<'de> for StatusReply
impl<'de> Deserialize<'de> for StatusReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StatusReply
Source§impl PartialEq for StatusReply
impl PartialEq for StatusReply
Source§impl Serialize for StatusReply
impl Serialize for StatusReply
impl StructuralPartialEq for StatusReply
Auto Trait Implementations§
impl Forget for StatusReply
impl Freeze for StatusReply
impl Move for StatusReply
impl RefUnwindSafe for StatusReply
impl Send for StatusReply
impl Sync for StatusReply
impl Unpin for StatusReply
impl UnsafeUnpin for StatusReply
impl UnwindSafe for StatusReply
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.