pub struct SessionModelState {
pub selection: Option<RunSelection>,
pub successful_fallback: bool,
/* private fields */
}Fields§
§selection: Option<RunSelection>§successful_fallback: boolImplementations§
Source§impl SessionModelState
impl SessionModelState
pub fn from_events(events: &[StoredEvent]) -> Self
pub fn apply(&mut self, run: Option<RunId>, event: &EventPayload)
Sourcepub fn continuation(
&self,
requested: &RunSelection,
chain: &[ModelSelection],
reset: bool,
) -> RunSelection
pub fn continuation( &self, requested: &RunSelection, chain: &[ModelSelection], reset: bool, ) -> RunSelection
Resolve a stale/default selection against a freshly frozen chain. Exact model+variant identities, not an index from an earlier configuration, match.
Trait Implementations§
Source§impl Clone for SessionModelState
impl Clone for SessionModelState
Source§fn clone(&self) -> SessionModelState
fn clone(&self) -> SessionModelState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionModelState
impl Debug for SessionModelState
Source§impl Default for SessionModelState
impl Default for SessionModelState
Source§fn default() -> SessionModelState
fn default() -> SessionModelState
Returns the “default value” for a type. Read more
Source§impl PartialEq for SessionModelState
impl PartialEq for SessionModelState
Source§fn eq(&self, other: &SessionModelState) -> bool
fn eq(&self, other: &SessionModelState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionModelState
Auto Trait Implementations§
impl Freeze for SessionModelState
impl RefUnwindSafe for SessionModelState
impl Send for SessionModelState
impl Sync for SessionModelState
impl Unpin for SessionModelState
impl UnsafeUnpin for SessionModelState
impl UnwindSafe for SessionModelState
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