Skip to main content

RuntimeInternal

Struct RuntimeInternal 

Source
pub struct RuntimeInternal { /* private fields */ }

Implementations§

Source§

impl RuntimeInternal

Source

pub fn version(&self) -> &str

Source

pub fn config(&self) -> &RuntimeConfig

Source

pub fn com_hub(&self) -> Rc<ComHub>

Source

pub fn endpoint(&self) -> &Endpoint

Source

pub fn pointer_availability_lookup(&self) -> Ref<'_, PointerAvailabilityLookup>

Source

pub fn pointer_availability_lookup_mut( &self, ) -> RefMut<'_, PointerAvailabilityLookup>

Source

pub fn memory(&self) -> &RefCell<SharedReferencesCache>

Source

pub fn core_library(&self) -> &CoreLibrary

Source

pub fn pointer_address_provider( &self, ) -> &RefCell<SelfOwnedPointerAddressProvider>

Source

pub fn incoming_sections_receiver_mut( &self, ) -> RefMut<'_, UnboundedReceiver<IncomingSection>>

Source

pub fn incoming_sections_receiver( &self, ) -> Ref<'_, UnboundedReceiver<IncomingSection>>

Source

pub fn task_manager(&self) -> &TaskManager

Source

pub fn stub() -> RuntimeInternal

Source

pub fn execute_dxb<'a>( self: Rc<RuntimeInternal>, input: DXBWithSharedValues, execution_context: Option<&'a mut ExecutionContext>, _end_execution: bool, ) -> Pin<Box<dyn Future<Output = Result<Option<ValueContainer>, ExecutionError>> + 'a>>

Source

pub fn execute_dxb_sync( self: Rc<RuntimeInternal>, dxb: DXBWithSharedValues, execution_context: Option<&mut ExecutionContext>, _end_execution: bool, ) -> Result<Option<ValueContainer>, ExecutionError>

Source

pub async fn execute_remote( self: Rc<RuntimeInternal>, remote_execution_context: &mut RemoteExecutionContext, input: DXBWithSharedValues, ) -> Result<Option<ValueContainer>, ExecutionError>

Source

pub fn register_shared_containers_for_single_endpoint( &self, endpoint: &Endpoint, shared_containers: Vec<SharedContainer>, )

Registers a list of shared containers for a single endpoint.

Source

pub unsafe fn register_shared_containers_for_endpoints( &self, endpoints: &[&Endpoint], shared_containers: Vec<SharedContainer>, ) -> Result<(), ()>

Registers a list of shared containers for a list of endpoints. The caller must ensure that endpoints is not empty.

Source

pub fn get_env(&self) -> HashMap<String, String>

Source

pub fn create_dif_interface(&self) -> DIFInterface

Creates a new DIFInterface with a unique transceiver id and the runtime’s pointer address provider

Trait Implementations§

Source§

impl Debug for RuntimeInternal

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TypeSubset<U> for T
where U: TypeSuperset<T>,

Source§

fn is_subset_of(&self, other: &U) -> bool

Returns whether self is a subset of type