Module RuntimeStruct

Module RuntimeStruct 

Source
Expand description

Main runtime struct definition.

§ApplicationRunTime (RunTime::ApplicationRunTime)

§RESPONSIBILITIES

Defines the main ApplicationRunTime struct that provides effect execution and lifecycle management capabilities for the Mountain application.

§ARCHITECTURAL ROLE

Core execution engine in Mountain’s architecture that bridges declarative effect system with high-performance task execution through Echo scheduler.

§KEY COMPONENTS

  • Scheduler: Shared handle to Echo scheduler for task execution
  • Environment: Shared handle to MountainEnvironment for capability access

§ERROR HANDLING

Uses Result types for fallible operations. The struct itself is infallible to create (all fields are Arc handles), but operations may return errors.

§LOGGING

Uses log crate with appropriate severity levels for lifecycle events.

§PERFORMANCE CONSIDERATIONS

  • Uses Arc for shared state to minimize cloning
  • Struct derives Clone for cheap duplication
  • All fields are thread-safe Arc references

§TODO

None

Structs§

ApplicationRunTime
A RunTime that uses a high-performance, work-stealing scheduler (Echo) to execute all ActionEffects.