pub struct ExecutionInput {
pub options: ExecutionOptions,
pub caller_metadata: ExecutionCallerMetadata,
pub dxb: Vec<u8>,
pub shared_values: Vec<SharedContainer>,
pub loop_state: Option<ExecutionLoopState>,
pub runtime: Runtime,
}Expand description
Input required to execute a DXB program.
Fields§
§options: ExecutionOptionsOptions for execution.
caller_metadata: ExecutionCallerMetadataMetadata about the caller of the execution
dxb: Vec<u8>The DXB program body containing raw bytecode.
loop_state: Option<ExecutionLoopState>For persisting execution state across multiple executions (e.g., for REPL scenarios).
runtime: RuntimeImplementations§
Source§impl ExecutionInput
impl ExecutionInput
pub fn new( dxb_with_shared_values: DXBWithSharedValues, caller_metadata: ExecutionCallerMetadata, options: ExecutionOptions, runtime: Runtime, ) -> Self
pub fn new_with_loop_state( dxb_with_shared_values: DXBWithSharedValues, caller_metadata: ExecutionCallerMetadata, options: ExecutionOptions, runtime: Runtime, loop_state: Option<ExecutionLoopState>, ) -> Self
pub fn new_with_stack( dxb_with_shared_values: DXBWithSharedValues, caller_metadata: ExecutionCallerMetadata, options: ExecutionOptions, runtime: Runtime, stack: RuntimeExecutionStack, ) -> Self
pub fn execution_loop( self, ) -> (InterruptProvider, impl Iterator<Item = Result<ExternalExecutionInterrupt, ExecutionError>>)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionInput
impl !Send for ExecutionInput
impl !Sync for ExecutionInput
impl !UnwindSafe for ExecutionInput
impl Forget for ExecutionInput
impl Freeze for ExecutionInput
impl Move for ExecutionInput
impl Unpin for ExecutionInput
impl UnsafeUnpin for ExecutionInput
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> 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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type