pub struct StateSnapshot {
pub timeline_id: String,
pub tick: u64,
pub entity_count: u64,
pub event_count: u64,
pub scope_chain_heads: Vec<(String, String)>,
pub state_hash: String,
}Expand description
Serializable snapshot of simulation state at a specific tick.
Fields§
§timeline_id: String§tick: u64§entity_count: u64§event_count: u64§scope_chain_heads: Vec<(String, String)>Head of each scope’s digest chain: (scope_key, latest_digest).
state_hash: StringTrait Implementations§
Source§impl Clone for StateSnapshot
impl Clone for StateSnapshot
Source§fn clone(&self) -> StateSnapshot
fn clone(&self) -> StateSnapshot
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 StateSnapshot
impl Debug for StateSnapshot
Source§impl<'de> Deserialize<'de> for StateSnapshot
impl<'de> Deserialize<'de> for StateSnapshot
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
Source§impl PartialEq for StateSnapshot
impl PartialEq for StateSnapshot
Source§impl Serialize for StateSnapshot
impl Serialize for StateSnapshot
impl StructuralPartialEq for StateSnapshot
Auto Trait Implementations§
impl Freeze for StateSnapshot
impl RefUnwindSafe for StateSnapshot
impl Send for StateSnapshot
impl Sync for StateSnapshot
impl Unpin for StateSnapshot
impl UnsafeUnpin for StateSnapshot
impl UnwindSafe for StateSnapshot
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