pub struct RuntimeHostConfig {
pub profile: RuntimeHostProfileConfig,
pub durability: RuntimeDurabilityConfig,
pub providers: RuntimeProviderConfig,
pub prompt: RuntimePromptConfig,
pub control: RuntimeControlConfig,
pub tracing: RuntimeTracingConfig,
}Expand description
Required host configuration for all runtimes.
Fields§
§profile: RuntimeHostProfileConfig§durability: RuntimeDurabilityConfig§providers: RuntimeProviderConfig§prompt: RuntimePromptConfig§control: RuntimeControlConfig§tracing: RuntimeTracingConfigImplementations§
Source§impl RuntimeHostConfig
impl RuntimeHostConfig
Sourcepub fn new(
effect_host: Arc<dyn EffectHost>,
lashlang_artifact_store: Arc<dyn LashlangArtifactStore>,
attachment_store: Arc<dyn AttachmentStore>,
) -> Self
pub fn new( effect_host: Arc<dyn EffectHost>, lashlang_artifact_store: Arc<dyn LashlangArtifactStore>, attachment_store: Arc<dyn AttachmentStore>, ) -> Self
Construct a config with the three host-owned dependencies named explicitly.
There is intentionally no Default. The effect host, Lashlang
artifact store, and attachment store 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, the process-global in-memory Lashlang
artifact store, and an in-memory attachment store.
Convenient for tests and local experiments; not durable. Named so the choice is never silent.
pub fn with_process_cancel_ability( self, process_cancel_ability: Arc<dyn ProcessCancelAbility>, ) -> 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