pub struct RuntimeConfig {Show 13 fields
pub gpu_enabled: bool,
pub primary_backend: String,
pub fallback_backend: Option<String>,
pub max_kernel_instances: usize,
pub max_queue_depth: usize,
pub drain_timeout: Duration,
pub health_check_interval: Duration,
pub hot_reload_enabled: bool,
pub structured_logging: bool,
pub log_level: String,
pub metrics_interval: Duration,
pub backend: BackendConfig,
pub worker_threads: usize,
}Expand description
Runtime configuration
Fields§
§gpu_enabled: boolEnable GPU backends
primary_backend: StringPrimary GPU backend (cuda, wgpu, metal, cpu)
fallback_backend: Option<String>Fallback backend if primary unavailable
max_kernel_instances: usizeMaximum concurrent kernel instances
max_queue_depth: usizeMaximum message queue depth per kernel
drain_timeout: DurationDrain timeout for graceful shutdown
health_check_interval: DurationHealth check interval
hot_reload_enabled: boolEnable hot configuration reload
structured_logging: boolEnable structured JSON logging
log_level: StringLog level (trace, debug, info, warn, error)
metrics_interval: DurationMetrics export interval
backend: BackendConfigBackend-specific configuration
worker_threads: usizeWorker thread count (0 = auto-detect)
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn development() -> Self
pub fn development() -> Self
Development configuration - minimal overhead, verbose logging
Sourcepub fn production() -> Self
pub fn production() -> Self
Production configuration - optimized settings
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
High-performance configuration - maximum throughput
Sourcepub fn from_file(path: &Path) -> Result<Self, ConfigError>
pub fn from_file(path: &Path) -> Result<Self, ConfigError>
Load configuration from file
Sourcepub fn builder() -> RuntimeConfigBuilder
pub fn builder() -> RuntimeConfigBuilder
Create a builder for this configuration
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Validate configuration
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.