pub struct NativeModuleRegistry { /* private fields */ }Expand description
Statically linked native Module factories available to an App binary.
Implementations§
Source§impl NativeModuleRegistry
impl NativeModuleRegistry
Sourcepub fn with_linked_factories(self) -> Self
pub fn with_linked_factories(self) -> Self
Adds every Module factory contributed to this Host at link time.
This catalog describes code available in the binary. The Resolved App Plan remains the sole authority that selects and binds Module Instances.
Sourcepub fn factories(&self) -> impl Iterator<Item = &dyn NativeModuleFactory>
pub fn factories(&self) -> impl Iterator<Item = &dyn NativeModuleFactory>
Returns the exact native factories available to this registry.
Sourcepub fn with_factory(self, factory: impl NativeModuleFactory) -> Self
pub fn with_factory(self, factory: impl NativeModuleFactory) -> Self
Adds one statically linked factory.
Trait Implementations§
Source§impl Debug for NativeModuleRegistry
impl Debug for NativeModuleRegistry
Source§impl Default for NativeModuleRegistry
impl Default for NativeModuleRegistry
Source§fn default() -> NativeModuleRegistry
fn default() -> NativeModuleRegistry
Returns the “default value” for a type. Read more
Source§impl NativeExecutionAdapter for NativeModuleRegistry
impl NativeExecutionAdapter for NativeModuleRegistry
Source§fn prepare(
&self,
plan: &ResolvedAppPlan,
) -> Result<PreparedNativeApp, RuntimeFailure>
fn prepare( &self, plan: &ResolvedAppPlan, ) -> Result<PreparedNativeApp, RuntimeFailure>
Instantiates the exact Plan and confirms its endpoint and binding tables.
Source§fn recreate(
&self,
plan: &ResolvedAppPlan,
instance_key: &str,
) -> Result<PreparedNativeModule, RuntimeFailure>
fn recreate( &self, plan: &ResolvedAppPlan, instance_key: &str, ) -> Result<PreparedNativeModule, RuntimeFailure>
Creates a fresh generation for one selected native Module Instance.
Auto Trait Implementations§
impl !RefUnwindSafe for NativeModuleRegistry
impl !Send for NativeModuleRegistry
impl !Sync for NativeModuleRegistry
impl !UnwindSafe for NativeModuleRegistry
impl Freeze for NativeModuleRegistry
impl Unpin for NativeModuleRegistry
impl UnsafeUnpin for NativeModuleRegistry
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> ExecutionAdapter for Twhere
T: NativeExecutionAdapter,
impl<T> ExecutionAdapter for Twhere
T: NativeExecutionAdapter,
Source§fn execution_class(&self) -> ExecutionClassId
fn execution_class(&self) -> ExecutionClassId
Returns the open execution class implemented by this Adapter package.
Source§fn prepare(
&self,
plan: &ResolvedAppPlan,
) -> Result<PreparedNativeApp, RuntimeFailure>
fn prepare( &self, plan: &ResolvedAppPlan, ) -> Result<PreparedNativeApp, RuntimeFailure>
Instantiates the exact Plan and confirms its endpoint and binding tables.
Source§fn recreate(
&self,
plan: &ResolvedAppPlan,
instance_key: &str,
) -> Result<PreparedNativeModule, RuntimeFailure>
fn recreate( &self, plan: &ResolvedAppPlan, instance_key: &str, ) -> Result<PreparedNativeModule, RuntimeFailure>
Creates a fresh generation for one selected Module Instance. Read more