pub struct RuntimeBuilder { /* private fields */ }Expand description
Builder that aggregates one plugin manifest and public registries.
Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn with_plugin<P: AppPlugin + ?Sized>(
&mut self,
plugin: &P,
node_id: NodeId,
) -> RuntimeResult<&mut Self>
pub fn with_plugin<P: AppPlugin + ?Sized>( &mut self, plugin: &P, node_id: NodeId, ) -> RuntimeResult<&mut Self>
Registers the primary plugin and derives its node-scoped manifest.
Sourcepub fn with_additional_plugin<P: AppPlugin + ?Sized>(
&mut self,
plugin: &P,
) -> RuntimeResult<&mut Self>
pub fn with_additional_plugin<P: AppPlugin + ?Sized>( &mut self, plugin: &P, ) -> RuntimeResult<&mut Self>
Adds behavior from another plugin without replacing identity.
Sourcepub fn application_manifest(&self) -> Option<&ApplicationManifestV1>
pub fn application_manifest(&self) -> Option<&ApplicationManifestV1>
Returns the primary application manifest, when configured.
Sourcepub fn commands(&self) -> &CommandRegistry
pub fn commands(&self) -> &CommandRegistry
Returns declared commands.
Sourcepub fn events(&self) -> &EventRegistry
pub fn events(&self) -> &EventRegistry
Returns declared events.
Sourcepub fn states(&self) -> &StateRegistry
pub fn states(&self) -> &StateRegistry
Returns declared states.
Sourcepub fn decisions(&self) -> &DecisionRegistry
pub fn decisions(&self) -> &DecisionRegistry
Returns declared decision node names.
Sourcepub fn command_bus(&self) -> &CommandBus
pub fn command_bus(&self) -> &CommandBus
Returns the configured command bus.
Sourcepub fn build(self) -> RuntimeResult<RuntimeInstance>
pub fn build(self) -> RuntimeResult<RuntimeInstance>
Produces an immutable Runtime instance.
Trait Implementations§
Source§impl Debug for RuntimeBuilder
impl Debug for RuntimeBuilder
Source§impl Default for RuntimeBuilder
impl Default for RuntimeBuilder
Source§fn default() -> RuntimeBuilder
fn default() -> RuntimeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RuntimeBuilder
impl !RefUnwindSafe for RuntimeBuilder
impl !UnwindSafe for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
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