pub struct OperationalState {
pub mode: OperatingMode,
pub error_streak: u32,
pub total_errors: u32,
pub total_successes: u32,
pub last_tick_ms: u64,
}Expand description
Operational health state — derived from AgentStateVector events.
Fields§
§mode: OperatingModeCurrent operating mode.
error_streak: u32Consecutive error count.
total_errors: u32Total errors seen.
total_successes: u32Total successful actions.
last_tick_ms: u64Timestamp of last tick (ms since epoch).
Trait Implementations§
Source§impl Clone for OperationalState
impl Clone for OperationalState
Source§fn clone(&self) -> OperationalState
fn clone(&self) -> OperationalState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationalState
impl Debug for OperationalState
Source§impl Default for OperationalState
impl Default for OperationalState
Source§impl<'de> Deserialize<'de> for OperationalState
impl<'de> Deserialize<'de> for OperationalState
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
Auto Trait Implementations§
impl Freeze for OperationalState
impl RefUnwindSafe for OperationalState
impl Send for OperationalState
impl Sync for OperationalState
impl Unpin for OperationalState
impl UnsafeUnpin for OperationalState
impl UnwindSafe for OperationalState
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