pub struct Runtime {
pub schema: Schema,
pub snapshot: Snapshot,
pub sequence: u64,
pub check_constraints: bool,
pub guard_evaluator: Option<Box<dyn GuardEvaluator>>,
}Expand description
Execution runtime for a schema.
Fields§
§schema: Schema§snapshot: Snapshot§sequence: u64§check_constraints: bool§guard_evaluator: Option<Box<dyn GuardEvaluator>>Implementations§
Source§impl Runtime
impl Runtime
pub fn new(schema: Schema) -> Self
pub fn clone_runtime(&self) -> Self
pub fn tokens(&self, state_id: &str) -> i64
pub fn set_tokens(&mut self, state_id: &str, count: i64)
pub fn data(&self, state_id: &str) -> Option<&Value>
pub fn set_data(&mut self, state_id: &str, value: Value)
Sourcepub fn enabled_actions(&self) -> Vec<String>
pub fn enabled_actions(&self) -> Vec<String>
Returns all actions that can execute.
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl !UnwindSafe for Runtime
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