pub struct Snapshot {
pub exec_name: String,
pub state_space: StateSpace,
pub state_info: StateInfo,
pub log: Log,
pub panic_message: Option<String>,
/* private fields */
}
Expand description
A snapshot of the current state of machine-check.
Provided by the backend to the frontend.
Fields§
§exec_name: String
§state_space: StateSpace
§state_info: StateInfo
§log: Log
§panic_message: Option<String>
Implementations§
Source§impl Snapshot
impl Snapshot
pub fn new( exec_name: String, state_space: StateSpace, state_info: StateInfo, properties: Vec<SubpropertySnapshot>, log: Log, panic_message: Option<String>, ) -> Self
pub fn root_properties_iter(&self) -> impl Iterator<Item = &SubpropertySnapshot>
pub fn contains_subindex(&self, index: SubpropertyIndex) -> bool
pub fn select_root_property( &self, index: RootPropertyIndex, ) -> &SubpropertySnapshot
pub fn select_subproperty( &self, subindex: SubpropertyIndex, ) -> &SubpropertySnapshot
pub fn subindex_to_root_index( &self, subindex: SubpropertyIndex, ) -> RootPropertyIndex
pub fn root_index_to_subindex( &self, index: RootPropertyIndex, ) -> SubpropertyIndex
pub fn last_property_subindex(&self) -> Option<SubpropertyIndex>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more