pub struct LoopStats {
pub cycles: u64,
pub total_actions: u64,
pub actions_per_level: [u64; 4],
pub actions_per_type: HashMap<String, u64>,
pub last_cycle: i64,
}Expand description
Statistics for the homeostatic loop.
Fields§
§cycles: u64Total cycles run.
total_actions: u64Total actions taken (all levels).
actions_per_level: [u64; 4]Actions per level.
actions_per_type: HashMap<String, u64>Actions per type (as string → count).
last_cycle: i64Last cycle timestamp (Unix seconds).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoopStats
impl<'de> Deserialize<'de> for LoopStats
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 LoopStats
impl RefUnwindSafe for LoopStats
impl Send for LoopStats
impl Sync for LoopStats
impl Unpin for LoopStats
impl UnsafeUnpin for LoopStats
impl UnwindSafe for LoopStats
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