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 (the default), kernel subsystems do not activate
unless explicitly invoked via weave kernel CLI commands.
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§fn default() -> KernelConfig
fn default() -> KernelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KernelConfig
impl<'de> Deserialize<'de> for KernelConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<KernelConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<KernelConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KernelConfig> for KernelConfigExt
impl From<KernelConfig> for KernelConfigExt
Source§fn from(base: KernelConfig) -> Self
fn from(base: KernelConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for KernelConfig
impl Serialize for KernelConfig
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,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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