pub struct FactorsExecutorApp<T: RuntimeFactors, U> { /* private fields */ }
Expand description
A FactorsExecutorApp represents a loaded Spin app, ready for instantiation.
It is generic over the executor’s [RuntimeFactors
] and any ad-hoc additional
per-instance state needed by the caller.
Implementations§
Source§impl<T: RuntimeFactors, U: Send + 'static> FactorsExecutorApp<T, U>
impl<T: RuntimeFactors, U: Send + 'static> FactorsExecutorApp<T, U>
pub fn engine(&self) -> &Engine<InstanceState<T::InstanceState, U>>
pub fn configured_app(&self) -> &ConfiguredApp<T>
pub fn app(&self) -> &App
pub fn get_component(&self, component_id: &str) -> Result<&Component>
Sourcepub fn prepare(
&self,
component_id: &str,
) -> Result<FactorsInstanceBuilder<'_, T, U>>
pub fn prepare( &self, component_id: &str, ) -> Result<FactorsInstanceBuilder<'_, T, U>>
Returns an instance builder for the given component ID.
Auto Trait Implementations§
impl<T, U> Freeze for FactorsExecutorApp<T, U>where
<T as RuntimeFactors>::AppState: Freeze,
impl<T, U> !RefUnwindSafe for FactorsExecutorApp<T, U>
impl<T, U> Send for FactorsExecutorApp<T, U>
impl<T, U> Sync for FactorsExecutorApp<T, U>
impl<T, U> Unpin for FactorsExecutorApp<T, U>where
<T as RuntimeFactors>::AppState: Unpin,
impl<T, U> !UnwindSafe for FactorsExecutorApp<T, U>
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> 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