Skip to main content

SimulationSnapshot

Struct SimulationSnapshot 

Source
pub struct SimulationSnapshot {
Show 38 fields pub engine_version: String, pub snapshot_format_version: u32, pub run_manifest: Option<RunManifest>, pub run_manifest_hash: String, pub run_configuration: Option<RunConfigurationSnapshot>, pub checkpoint_hash: String, pub commitment_format_version: u32, pub commitment_roots: Option<CommitmentRoots>, pub revision_format_version: u32, pub state_revision: u64, pub replay_revision_format_version: u32, pub admission_cursor_format_version: u32, pub admitted_attempt_count: u64, pub admitted_command_count: u64, pub admitted_event_count: u64, pub initial_time: SimTime, pub initial_scenario: Option<Scenario>, pub now: SimTime, pub plugin_registration_closed: bool, pub entities: Vec<EntityRef>, pub world: WorldSnapshot, pub person_availability: BTreeMap<PersonId, PersonAvailability>, pub created_persons: Vec<CreatedPerson>, pub knowledge: KnowledgeSnapshot, pub events: Vec<SimEvent>, pub commands: Vec<CommandRecord>, pub command_attempts: Vec<CommandAttemptRecord>, pub ingress: Vec<IngressRecord>, pub boundaries: Vec<BoundaryRecord>, pub plugin_components: Vec<PluginComponentRecord>, pub domain_records: Vec<DomainRecord>, pub decisions: DecisionState, pub plugin_descriptors: Vec<PluginDescriptor>, pub schema: SchemaRegistry, pub root_seed: u64, pub authority_root_seed: u64, pub random_streams: Vec<RandomStreamState>, pub random_draws: Vec<RandomDrawRecord>, /* private fields */
}

Fields§

§engine_version: String§snapshot_format_version: u32§run_manifest: Option<RunManifest>§run_manifest_hash: String§run_configuration: Option<RunConfigurationSnapshot>§checkpoint_hash: String§commitment_format_version: u32

Version of the domain-separated checkpoint commitment contract.

§commitment_roots: Option<CommitmentRoots>

Persisted canonical roots verified before a snapshot becomes live.

§revision_format_version: u32

Version of the revision and checkpoint sub-contract.

§state_revision: u64

Monotonic revision after all persisted attempt and boundary transactions.

§replay_revision_format_version: u32

Revision-evidence format available to exact replay.

§admission_cursor_format_version: u32

Version of the persisted boundary-admission cursor contract.

§admitted_attempt_count: u64

Number of command-attempt records consumed by completed boundaries.

§admitted_command_count: u64

Number of accepted-command records consumed by completed boundaries.

§admitted_event_count: u64

Number of event records consumed as boundary ingress.

§initial_time: SimTime§initial_scenario: Option<Scenario>§now: SimTime§plugin_registration_closed: bool§entities: Vec<EntityRef>§world: WorldSnapshot§person_availability: BTreeMap<PersonId, PersonAvailability>

Core person life and custody state; absent persons are alive and free.

§created_persons: Vec<CreatedPerson>

Runtime-created persons in allocation order.

§knowledge: KnowledgeSnapshot§events: Vec<SimEvent>§commands: Vec<CommandRecord>§command_attempts: Vec<CommandAttemptRecord>§ingress: Vec<IngressRecord>§boundaries: Vec<BoundaryRecord>§plugin_components: Vec<PluginComponentRecord>§domain_records: Vec<DomainRecord>§decisions: DecisionState§plugin_descriptors: Vec<PluginDescriptor>§schema: SchemaRegistry§root_seed: u64§authority_root_seed: u64

Authority credential root, intentionally independent from simulation RNG.

§random_streams: Vec<RandomStreamState>§random_draws: Vec<RandomDrawRecord>

Trait Implementations§

Source§

impl Clone for SimulationSnapshot

Source§

fn clone(&self) -> SimulationSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SimulationSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SimulationSnapshot

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<SimulationSnapshot, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SimulationSnapshot

Source§

fn eq(&self, other: &SimulationSnapshot) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SimulationSnapshot

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SimulationSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.