pub struct RuntimeConfigBuilder { /* private fields */ }Expand description
Builder for RuntimeConfig
Implementations§
Source§impl RuntimeConfigBuilder
impl RuntimeConfigBuilder
Sourcepub fn development() -> Self
pub fn development() -> Self
Create builder with development defaults
Sourcepub fn production() -> Self
pub fn production() -> Self
Create builder with production defaults
Sourcepub fn high_performance() -> Self
pub fn high_performance() -> Self
Create builder with high-performance defaults
Sourcepub fn gpu_enabled(self, enabled: bool) -> Self
pub fn gpu_enabled(self, enabled: bool) -> Self
Enable or disable GPU
Sourcepub fn primary_backend(self, backend: impl Into<String>) -> Self
pub fn primary_backend(self, backend: impl Into<String>) -> Self
Set primary backend
Sourcepub fn fallback_backend(self, backend: impl Into<String>) -> Self
pub fn fallback_backend(self, backend: impl Into<String>) -> Self
Set fallback backend
Sourcepub fn max_kernel_instances(self, count: usize) -> Self
pub fn max_kernel_instances(self, count: usize) -> Self
Set max kernel instances
Sourcepub fn max_queue_depth(self, depth: usize) -> Self
pub fn max_queue_depth(self, depth: usize) -> Self
Set max queue depth
Sourcepub fn drain_timeout(self, timeout: Duration) -> Self
pub fn drain_timeout(self, timeout: Duration) -> Self
Set drain timeout
Sourcepub fn health_check_interval(self, interval: Duration) -> Self
pub fn health_check_interval(self, interval: Duration) -> Self
Set health check interval
Sourcepub fn hot_reload(self, enabled: bool) -> Self
pub fn hot_reload(self, enabled: bool) -> Self
Enable hot reload
Sourcepub fn structured_logging(self, enabled: bool) -> Self
pub fn structured_logging(self, enabled: bool) -> Self
Enable structured logging
Sourcepub fn metrics_interval(self, interval: Duration) -> Self
pub fn metrics_interval(self, interval: Duration) -> Self
Set metrics interval
Sourcepub fn backend_config(self, config: BackendConfig) -> Self
pub fn backend_config(self, config: BackendConfig) -> Self
Set backend configuration
Sourcepub fn worker_threads(self, count: usize) -> Self
pub fn worker_threads(self, count: usize) -> Self
Set worker thread count
Sourcepub fn build(self) -> Result<RuntimeConfig, ConfigError>
pub fn build(self) -> Result<RuntimeConfig, ConfigError>
Build the configuration
Sourcepub fn build_unchecked(self) -> RuntimeConfig
pub fn build_unchecked(self) -> RuntimeConfig
Build without validation
Trait Implementations§
Source§impl Clone for RuntimeConfigBuilder
impl Clone for RuntimeConfigBuilder
Source§fn clone(&self) -> RuntimeConfigBuilder
fn clone(&self) -> RuntimeConfigBuilder
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 RuntimeConfigBuilder
impl Debug for RuntimeConfigBuilder
Source§impl Default for RuntimeConfigBuilder
impl Default for RuntimeConfigBuilder
Source§fn default() -> RuntimeConfigBuilder
fn default() -> RuntimeConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfigBuilder
impl RefUnwindSafe for RuntimeConfigBuilder
impl Send for RuntimeConfigBuilder
impl Sync for RuntimeConfigBuilder
impl Unpin for RuntimeConfigBuilder
impl UnwindSafe for RuntimeConfigBuilder
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.