pub struct Runtime {
pub version: String,
pub internal: Rc<RuntimeInternal>,
}Fields§
§version: String§internal: Rc<RuntimeInternal>Implementations§
Source§impl Runtime
publicly exposed wrapper impl for the Runtime
around RuntimeInternal
impl Runtime
publicly exposed wrapper impl for the Runtime around RuntimeInternal
pub fn new(config: RuntimeConfig) -> Runtime
pub fn init(config: RuntimeConfig, global_context: GlobalContext) -> Runtime
pub fn com_hub(&self) -> &ComHub
pub fn endpoint(&self) -> Endpoint
pub fn internal(&self) -> Rc<RuntimeInternal>
pub fn memory(&self) -> &RefCell<Memory>
pub fn init_native(config: RuntimeConfig) -> Runtime
pub async fn create( config: RuntimeConfig, global_context: GlobalContext, ) -> Runtime
pub async fn create_native(config: RuntimeConfig) -> Runtime
pub async fn execute( &self, script: &str, inserted_values: &[ValueContainer], execution_context: Option<&mut ExecutionContext>, ) -> Result<Option<ValueContainer>, ScriptExecutionError>
pub fn execute_sync( &self, script: &str, inserted_values: &[ValueContainer], execution_context: Option<&mut ExecutionContext>, ) -> Result<Option<ValueContainer>, ScriptExecutionError>
pub async fn execute_dxb<'a>( &'a self, dxb: Vec<u8>, execution_context: Option<&'a mut ExecutionContext>, end_execution: bool, ) -> Result<Option<ValueContainer>, ExecutionError>
pub fn execute_dxb_sync( &self, dxb: &[u8], execution_context: Option<&mut ExecutionContext>, end_execution: bool, ) -> Result<Option<ValueContainer>, ExecutionError>
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<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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