pub struct NativePluginRegistry { /* private fields */ }Expand description
Statically linked native Plugin factories available to an App binary.
Implementations§
Source§impl NativePluginRegistry
impl NativePluginRegistry
Sourcepub fn with_linked_factories(self) -> Self
pub fn with_linked_factories(self) -> Self
Adds every Plugin 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 Plugin Instances.
Sourcepub fn factories(&self) -> impl Iterator<Item = &dyn NativePluginFactory>
pub fn factories(&self) -> impl Iterator<Item = &dyn NativePluginFactory>
Returns the exact native factories available to this registry.
Sourcepub fn host_catalog(
slots: impl IntoIterator<Item = HostSlot>,
defaults: impl IntoIterator<Item = HostDefaultPlugin>,
) -> Result<HostCatalog, RuntimeFailure>
pub fn host_catalog( slots: impl IntoIterator<Item = HostSlot>, defaults: impl IntoIterator<Item = HostDefaultPlugin>, ) -> Result<HostCatalog, RuntimeFailure>
Builds the immutable Host Catalog declared by this binary and Host policy.
Sourcepub fn with_factory(self, factory: impl NativePluginFactory) -> Self
pub fn with_factory(self, factory: impl NativePluginFactory) -> Self
Adds one statically linked factory.
Trait Implementations§
Source§impl Debug for NativePluginRegistry
impl Debug for NativePluginRegistry
Source§impl Default for NativePluginRegistry
impl Default for NativePluginRegistry
Source§fn default() -> NativePluginRegistry
fn default() -> NativePluginRegistry
Returns the “default value” for a type. Read more
Source§impl NativeExecutionAdapter for NativePluginRegistry
impl NativeExecutionAdapter for NativePluginRegistry
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<PreparedNativePlugin, RuntimeFailure>
fn recreate( &self, plan: &ResolvedAppPlan, instance_key: &str, ) -> Result<PreparedNativePlugin, RuntimeFailure>
Creates a fresh generation for one selected native Plugin Instance.
Auto Trait Implementations§
impl !RefUnwindSafe for NativePluginRegistry
impl !Send for NativePluginRegistry
impl !Sync for NativePluginRegistry
impl !UnwindSafe for NativePluginRegistry
impl Freeze for NativePluginRegistry
impl Unpin for NativePluginRegistry
impl UnsafeUnpin for NativePluginRegistry
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<PreparedNativePlugin, RuntimeFailure>
fn recreate( &self, plan: &ResolvedAppPlan, instance_key: &str, ) -> Result<PreparedNativePlugin, RuntimeFailure>
Creates a fresh generation for one selected Plugin Instance. Read more