pub struct RuntimeApp {
pub orchestrator: Orchestrator,
pub blob_store: Arc<dyn BlobStore>,
pub hook_registry: Arc<HookRegistry>,
pub action_registry_manager: Arc<ActionRegistryManager>,
}Expand description
Running app bundle created from unified config.
Fields§
§orchestrator: Orchestrator§blob_store: Arc<dyn BlobStore>§hook_registry: Arc<HookRegistry>§action_registry_manager: Arc<ActionRegistryManager>Implementations§
Source§impl RuntimeApp
impl RuntimeApp
Sourcepub async fn from_config_path(
path: impl Into<PathBuf>,
) -> Result<Self, BootstrapError>
pub async fn from_config_path( path: impl Into<PathBuf>, ) -> Result<Self, BootstrapError>
Create a runnable app from a single orchestral.yaml.
Sourcepub async fn from_config_path_with_component_factory(
path: impl Into<PathBuf>,
component_factory: Arc<dyn RuntimeComponentFactory>,
) -> Result<Self, BootstrapError>
pub async fn from_config_path_with_component_factory( path: impl Into<PathBuf>, component_factory: Arc<dyn RuntimeComponentFactory>, ) -> Result<Self, BootstrapError>
Create a runnable app and inject custom runtime component factory.
Sourcepub async fn from_config_path_with_spi(
path: impl Into<PathBuf>,
component_factory: Arc<dyn RuntimeComponentFactory>,
hook_registry: Arc<HookRegistry>,
action_factory: Arc<dyn ActionFactory>,
) -> Result<Self, BootstrapError>
pub async fn from_config_path_with_spi( path: impl Into<PathBuf>, component_factory: Arc<dyn RuntimeComponentFactory>, hook_registry: Arc<HookRegistry>, action_factory: Arc<dyn ActionFactory>, ) -> Result<Self, BootstrapError>
Create a runnable app and inject component factory + hook registry.
Auto Trait Implementations§
impl !Freeze for RuntimeApp
impl !RefUnwindSafe for RuntimeApp
impl !UnwindSafe for RuntimeApp
impl Send for RuntimeApp
impl Sync for RuntimeApp
impl Unpin for RuntimeApp
impl UnsafeUnpin for RuntimeApp
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