pub struct SystemState { /* private fields */ }Expand description
System state for invariant checking
Implementations§
Source§impl SystemState
impl SystemState
pub fn new() -> Self
pub fn is_present(&self, resonator: &ResonatorId) -> bool
pub fn is_human_resonator(&self, resonator: &ResonatorId) -> bool
pub fn commitment_exists(&self, commitment_id: &CommitmentId) -> bool
pub fn available_attention(&self, resonator: &ResonatorId) -> u64
pub fn safety_concern_active(&self) -> bool
Trait Implementations§
Source§impl Clone for SystemState
impl Clone for SystemState
Source§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
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 SystemState
impl Debug for SystemState
Auto Trait Implementations§
impl Freeze for SystemState
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnwindSafe for SystemState
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