pub struct Runtime {
pub context: Context,
pub pos: usize,
pub namespace: Vec<VerifiedCommand>,
}Expand description
Represents the state of the program’s runtime, including the current context, execution position, and namespace of executable commands.
Cloned Runtime will work with the same context.
It performs callbacks to commands at the current execution position and, if necessary, provides context for them.
let runtime = Runtime
{
context : Context::default(),
pos : 0,
namespace :vec![],
};
assert!( runtime.is_finished() );Fields§
§context: Contextcontext for current runtime
pos: usizecurrent execution position
namespace: Vec<VerifiedCommand>namespace which must be executed
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin 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
source§impl<S> SetWithType for S
impl<S> SetWithType for S
source§fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
fn set_with_type<T, IntoT>(&mut self, component: IntoT)where
IntoT: Into<T>,
S: SetComponent<T, IntoT>,
Function to set value of a component by its type.