pub struct RuntimeInternal {
pub memory: RefCell<Memory>,
pub com_hub: ComHub,
pub endpoint: Endpoint,
pub config: RuntimeConfig,
pub execution_contexts: RefCell<HashMap<IncomingEndpointContextSectionId, ExecutionContext>>,
/* private fields */
}Fields§
§memory: RefCell<Memory>§com_hub: ComHub§endpoint: Endpoint§config: RuntimeConfig§execution_contexts: RefCell<HashMap<IncomingEndpointContextSectionId, ExecutionContext>>active execution contexts, stored by context_id
Implementations§
Source§impl RuntimeInternal
impl RuntimeInternal
Sourcepub fn start_update_loop(self_rc: Rc<RuntimeInternal>)
pub fn start_update_loop(self_rc: Rc<RuntimeInternal>)
Starts the
Sourcepub async fn stop_update_loop(self_rc: Rc<RuntimeInternal>)
pub async fn stop_update_loop(self_rc: Rc<RuntimeInternal>)
Stops the update loop for the Runtime, if it is running.
Source§impl RuntimeInternal
impl RuntimeInternal
pub async fn execute( self_rc: Rc<RuntimeInternal>, script: &str, inserted_values: &[ValueContainer], execution_context: Option<&mut ExecutionContext>, ) -> Result<Option<ValueContainer>, ScriptExecutionError>
pub fn execute_sync( self_rc: Rc<RuntimeInternal>, script: &str, inserted_values: &[ValueContainer], execution_context: Option<&mut ExecutionContext>, ) -> Result<Option<ValueContainer>, ScriptExecutionError>
pub fn execute_dxb<'a>( self_rc: Rc<RuntimeInternal>, dxb: Vec<u8>, execution_context: Option<&'a mut ExecutionContext>, end_execution: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<ValueContainer>, ExecutionError>> + 'a>>
pub fn execute_dxb_sync( self_rc: Rc<RuntimeInternal>, dxb: &[u8], execution_context: Option<&mut ExecutionContext>, end_execution: bool, ) -> Result<Option<ValueContainer>, ExecutionError>
pub async fn execute_remote( self_rc: Rc<RuntimeInternal>, remote_execution_context: &mut RemoteExecutionContext, dxb: Vec<u8>, ) -> Result<Option<ValueContainer>, ExecutionError>
Trait Implementations§
Source§impl Debug for RuntimeInternal
impl Debug for RuntimeInternal
Auto Trait Implementations§
impl !Freeze for RuntimeInternal
impl !RefUnwindSafe for RuntimeInternal
impl !Send for RuntimeInternal
impl !Sync for RuntimeInternal
impl Unpin for RuntimeInternal
impl !UnwindSafe for RuntimeInternal
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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