pub struct State {
pub energy: f32,
pub threat: f32,
pub trust: f32,
pub peer_alive: bool,
pub has_work: bool,
pub idle_cycles: u32,
pub capacity: f32,
}Expand description
Input state for a single tick.
Fields§
§energy: f32§threat: f32§trust: f32§peer_alive: bool§has_work: bool§idle_cycles: u32§capacity: f32Trait Implementations§
impl Copy for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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