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() -> RuntimeConfig
pub fn development() -> RuntimeConfig
Development configuration - minimal overhead, verbose logging
Sourcepub fn production() -> RuntimeConfig
pub fn production() -> RuntimeConfig
Production configuration - optimized settings
Sourcepub fn high_performance() -> RuntimeConfig
pub fn high_performance() -> RuntimeConfig
High-performance configuration - maximum throughput
Sourcepub fn testing() -> RuntimeConfig
pub fn testing() -> RuntimeConfig
Testing configuration - deterministic behavior
Sourcepub fn from_env() -> RuntimeConfig
pub fn from_env() -> RuntimeConfig
Load configuration from environment variables
Sourcepub fn from_file(path: &Path) -> Result<RuntimeConfig, ConfigError>
pub fn from_file(path: &Path) -> Result<RuntimeConfig, 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for RuntimeConfig
impl Serialize for RuntimeConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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 = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more