pub struct RudaRuntimeConfig {
pub profiling: ProfilingConfig,
pub autotune: AutotuneConfig,
pub compilation: CompilationConfig,
pub streaming: StreamingConfig,
pub memory: MemoryConfig,
}Expand description
Represents the global configuration for Ruda, combining profiling, autotuning, and compilation settings.
Fields§
§profiling: ProfilingConfigConfiguration for profiling Ruda operations.
autotune: AutotuneConfigConfiguration for autotuning performance parameters.
compilation: CompilationConfigConfiguration for compilation settings.
streaming: StreamingConfigConfiguration for streaming settings.
memory: MemoryConfigConfiguration for memory settings.
Trait Implementations§
Source§impl Clone for RudaRuntimeConfig
impl Clone for RudaRuntimeConfig
Source§impl Debug for RudaRuntimeConfig
impl Debug for RudaRuntimeConfig
Source§impl Default for RudaRuntimeConfig
impl Default for RudaRuntimeConfig
Source§impl<'de> Deserialize<'de> for RudaRuntimeConfig
impl<'de> Deserialize<'de> for RudaRuntimeConfig
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
Source§impl RuntimeConfig for RudaRuntimeConfig
impl RuntimeConfig for RudaRuntimeConfig
Source§fn storage() -> &'static Mutex<Option<Arc<Self>>>
fn storage() -> &'static Mutex<Option<Arc<Self>>>
Global storage for the configuration singleton. Read more
Source§fn file_names() -> &'static [&'static str]
fn file_names() -> &'static [&'static str]
File names searched in each directory during [
Config::from_current_dir]. Read moreSource§fn section_file_names() -> &'static [(&'static str, &'static str)]
fn section_file_names() -> &'static [(&'static str, &'static str)]
File names searched in each directory, where only a specific TOML section is loaded
instead of the whole file. Read more
Source§fn override_from_env(self) -> Self
fn override_from_env(self) -> Self
Hook to override fields from environment variables after loading from disk. Read more
Source§fn get() -> Arc<Self> ⓘ
fn get() -> Arc<Self> ⓘ
Retrieves the current configuration, loading it from the current directory if not set. Read more
Source§fn save_default<P>(path: P) -> Result<(), Error>
fn save_default<P>(path: P) -> Result<(), Error>
Save the default configuration to the provided file path.
Source§fn from_current_dir() -> Self
fn from_current_dir() -> Self
Loads configuration from any of [
Config::file_names] in the current directory or its
parents. Read moreSource§fn from_file_path<P>(path: P) -> Result<Self, Error>
fn from_file_path<P>(path: P) -> Result<Self, Error>
Loads configuration from a specified file path.
Auto Trait Implementations§
impl Freeze for RudaRuntimeConfig
impl RefUnwindSafe for RudaRuntimeConfig
impl Send for RudaRuntimeConfig
impl Sync for RudaRuntimeConfig
impl Unpin for RudaRuntimeConfig
impl UnsafeUnpin for RudaRuntimeConfig
impl UnwindSafe for RudaRuntimeConfig
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