pub struct KernelConfig {
pub enabled: bool,
pub max_processes: u32,
pub health_check_interval_secs: u64,
pub cluster: Option<ClusterNetworkConfig>,
pub chain: Option<ChainConfig>,
pub resource_tree: Option<ResourceTreeConfig>,
}Expand description
Kernel subsystem configuration.
Embedded in the root Config under the kernel key. All fields
have sensible defaults so that existing configuration files parse
without errors.
§Example JSON
{
"kernel": {
"enabled": false,
"max_processes": 128,
"health_check_interval_secs": 15
}
}Fields§
§enabled: boolWhether the kernel subsystem is enabled.
When false, kernel subsystems do not activate unless explicitly
invoked via weave kernel CLI commands. Defaults to true.
max_processes: u32Maximum number of concurrent processes in the process table.
health_check_interval_secs: u64Interval (in seconds) between periodic health checks.
cluster: Option<ClusterNetworkConfig>Cluster networking configuration (native coordinator nodes).
chain: Option<ChainConfig>Local chain configuration (exochain feature).
resource_tree: Option<ResourceTreeConfig>Resource tree configuration (exochain feature).
Trait Implementations§
Source§impl Clone for KernelConfig
impl Clone for KernelConfig
Source§fn clone(&self) -> KernelConfig
fn clone(&self) -> KernelConfig
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 KernelConfig
impl Debug for KernelConfig
Source§impl Default for KernelConfig
impl Default for KernelConfig
Source§impl<'de> Deserialize<'de> for KernelConfig
impl<'de> Deserialize<'de> for KernelConfig
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 KernelConfig
impl RefUnwindSafe for KernelConfig
impl Send for KernelConfig
impl Sync for KernelConfig
impl Unpin for KernelConfig
impl UnsafeUnpin for KernelConfig
impl UnwindSafe for KernelConfig
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