pub struct RuntimeEnvironment {
pub plugin_host: Option<Arc<PluginHost>>,
pub residency: Residency,
pub background_task_host: Option<Arc<dyn BackgroundTaskHost>>,
pub session_store_factory: Option<Arc<dyn SessionStoreFactory>>,
pub attachment_store: Arc<dyn AttachmentStore>,
pub prompt: PromptLayer,
pub trace_sink: Option<Arc<dyn TraceSink>>,
pub trace_level: TraceLevel,
pub trace_context: TraceContext,
pub termination: TerminationPolicy,
}Expand description
Shared runtime infrastructure an embedder builds once and reuses
across every LashRuntime it constructs.
Cloning is cheap — every field is either Arc-wrapped or small.
Default values preserve legacy behaviour so existing embedders can
adopt incrementally.
Fields§
§plugin_host: Option<Arc<PluginHost>>§residency: Residency§background_task_host: Option<Arc<dyn BackgroundTaskHost>>§session_store_factory: Option<Arc<dyn SessionStoreFactory>>§attachment_store: Arc<dyn AttachmentStore>§prompt: PromptLayer§trace_sink: Option<Arc<dyn TraceSink>>§trace_level: TraceLevel§trace_context: TraceContext§termination: TerminationPolicyImplementations§
Source§impl RuntimeEnvironment
impl RuntimeEnvironment
pub fn builder() -> RuntimeEnvironmentBuilder
Trait Implementations§
Source§impl Clone for RuntimeEnvironment
impl Clone for RuntimeEnvironment
Source§fn clone(&self) -> RuntimeEnvironment
fn clone(&self) -> RuntimeEnvironment
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 Freeze for RuntimeEnvironment
impl !RefUnwindSafe for RuntimeEnvironment
impl Send for RuntimeEnvironment
impl Sync for RuntimeEnvironment
impl Unpin for RuntimeEnvironment
impl UnsafeUnpin for RuntimeEnvironment
impl !UnwindSafe for RuntimeEnvironment
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