pub struct CommandControl {
pub enable: bool,
pub url_address: String,
pub max_servers: u8,
pub max_failures: u8,
pub pulse_check: bool,
pub pulse_check_cron: String,
pub monitor: bool,
pub monitor_cron: String,
pub auto_start_services: bool,
}Expand description
Command and control configuration for managing distributed services.
This struct holds all configuration options for the command and control subsystem, including server addresses, failure thresholds, and cron schedules.
Fields§
§enable: boolEnable command and control features
url_address: StringURL address of this node (e.g. “https://localhost:8443”)
max_servers: u8Maximum number of servers to manage (must be > 0)
max_failures: u8Maximum number of failures before taking action (must be > 0)
pulse_check: boolEnable pulse check (heartbeat monitoring)
pulse_check_cron: StringCron expression for pulse check frequency
monitor: boolEnable monitoring
monitor_cron: StringCron expression for monitoring frequency
auto_start_services: boolAutomatically start services on initialization
Trait Implementations§
Source§impl Clone for CommandControl
impl Clone for CommandControl
Source§fn clone(&self) -> CommandControl
fn clone(&self) -> CommandControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandControl
impl Debug for CommandControl
Source§impl Default for CommandControl
impl Default for CommandControl
Source§impl<'de> Deserialize<'de> for CommandControl
impl<'de> Deserialize<'de> for CommandControl
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 ProductOSConfig for CommandControl
impl ProductOSConfig for CommandControl
Auto Trait Implementations§
impl Freeze for CommandControl
impl RefUnwindSafe for CommandControl
impl Send for CommandControl
impl Sync for CommandControl
impl Unpin for CommandControl
impl UnsafeUnpin for CommandControl
impl UnwindSafe for CommandControl
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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