pub struct RuntimeHostConfig {
pub durability: RuntimeDurabilityConfig,
pub process_engines: ProcessEngineRegistry,
pub providers: RuntimeProviderConfig,
pub prompt: RuntimePromptConfig,
pub control: RuntimeControlConfig,
pub tracing: RuntimeTracingConfig,
}Expand description
Required host configuration for all runtimes.
Fields§
§durability: RuntimeDurabilityConfig§process_engines: ProcessEngineRegistry§providers: RuntimeProviderConfig§prompt: RuntimePromptConfig§control: RuntimeControlConfig§tracing: RuntimeTracingConfigImplementations§
Source§impl RuntimeHostConfig
impl RuntimeHostConfig
Sourcepub fn new(
effect_host: Arc<dyn EffectHost>,
attachment_store: Arc<dyn AttachmentStore>,
process_env_store: Arc<dyn ProcessExecutionEnvStore>,
) -> Self
pub fn new( effect_host: Arc<dyn EffectHost>, attachment_store: Arc<dyn AttachmentStore>, process_env_store: Arc<dyn ProcessExecutionEnvStore>, ) -> Self
Construct a config with the three host-owned dependencies named explicitly.
There is intentionally no Default. The effect host and stores decide
a runtime’s durability, so hosts must choose them rather than silently
inheriting in-memory implementations. Use RuntimeHostConfig::in_memory
to opt into the in-process / in-memory versions by name.
Sourcepub fn in_memory() -> Self
pub fn in_memory() -> Self
Explicit in-process / in-memory configuration: an
InlineEffectHost and in-memory stores.
Convenient for tests and local experiments; not durable. Named so the choice is never silent.
pub fn with_process_env_store( self, process_env_store: Arc<dyn ProcessExecutionEnvStore>, ) -> Self
pub fn with_process_cancel_ability( self, process_cancel_ability: Arc<dyn ProcessCancelAbility>, ) -> Self
pub fn with_process_engine(self, engine: Arc<dyn ProcessEngine>) -> Self
Trait Implementations§
Source§impl Clone for RuntimeHostConfig
impl Clone for RuntimeHostConfig
Source§fn clone(&self) -> RuntimeHostConfig
fn clone(&self) -> RuntimeHostConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RuntimeHostConfig
impl !UnwindSafe for RuntimeHostConfig
impl Freeze for RuntimeHostConfig
impl Send for RuntimeHostConfig
impl Sync for RuntimeHostConfig
impl Unpin for RuntimeHostConfig
impl UnsafeUnpin for RuntimeHostConfig
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