pub struct RuntimeInstance { /* private fields */ }Expand description
Built runtime instance with manifest and registries.
Implementations§
Source§impl RuntimeInstance
impl RuntimeInstance
Sourcepub fn application_manifest(&self) -> &ApplicationManifestV1
pub fn application_manifest(&self) -> &ApplicationManifestV1
Returns the application-owned V1 manifest.
Sourcepub fn identity(&self) -> &RuntimeIdentity
pub fn identity(&self) -> &RuntimeIdentity
Returns Runtime/application identity.
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 nodes.
Sourcepub fn command_bus(&self) -> &CommandBus
pub fn command_bus(&self) -> &CommandBus
Returns the command bus.
Sourcepub fn lifecycle(&self) -> &RuntimeLifecycle
pub fn lifecycle(&self) -> &RuntimeLifecycle
Returns the process lifecycle.
Sourcepub fn dispatch_command(
&self,
command: &CommandEnvelope,
context: &dyn RuntimeContext,
) -> RuntimeResult<CommandResult>
pub fn dispatch_command( &self, command: &CommandEnvelope, context: &dyn RuntimeContext, ) -> RuntimeResult<CommandResult>
Evaluates policy and dispatches one command.
Sourcepub fn ensure_compatible(&self, other: &RuntimeIdentity) -> RuntimeResult<()>
pub fn ensure_compatible(&self, other: &RuntimeIdentity) -> RuntimeResult<()>
Verifies compatibility with another Runtime identity.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RuntimeInstance
impl !RefUnwindSafe for RuntimeInstance
impl !UnwindSafe for RuntimeInstance
impl Send for RuntimeInstance
impl Sync for RuntimeInstance
impl Unpin for RuntimeInstance
impl UnsafeUnpin for RuntimeInstance
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