pub struct FleetConfig {
pub ssh_connect_timeout_secs: u64,
pub ssh_command_timeout_secs: u64,
pub min_disk_space_mb: u64,
pub max_load_average: f64,
pub max_concurrent_workers: usize,
pub retry_count: u32,
pub retry_delay_ms: u64,
}Expand description
Fleet operation configuration.
Controls timeouts, thresholds, and behavior for fleet management commands
like rch fleet preflight, rch fleet status, and rch fleet deploy.
Fields§
§ssh_connect_timeout_secs: u64SSH connection timeout in seconds.
ssh_command_timeout_secs: u64SSH command execution timeout in seconds.
min_disk_space_mb: u64Minimum required disk space in MB for worker health.
max_load_average: f64Maximum acceptable load average for worker health.
max_concurrent_workers: usizeMaximum number of concurrent SSH connections.
retry_count: u32Number of retry attempts for transient failures.
retry_delay_ms: u64Delay between retries in milliseconds.
Implementations§
Source§impl FleetConfig
impl FleetConfig
Sourcepub fn ssh_connect_timeout(&self) -> Duration
pub fn ssh_connect_timeout(&self) -> Duration
Get SSH connect timeout as Duration.
Sourcepub fn ssh_command_timeout(&self) -> Duration
pub fn ssh_command_timeout(&self) -> Duration
Get SSH command timeout as Duration.
Sourcepub fn retry_delay(&self) -> Duration
pub fn retry_delay(&self) -> Duration
Get retry delay as Duration.
Trait Implementations§
Source§impl Clone for FleetConfig
impl Clone for FleetConfig
Source§fn clone(&self) -> FleetConfig
fn clone(&self) -> FleetConfig
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 FleetConfig
impl Debug for FleetConfig
Source§impl Default for FleetConfig
impl Default for FleetConfig
Source§impl<'de> Deserialize<'de> for FleetConfig
impl<'de> Deserialize<'de> for FleetConfig
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 FleetConfig
impl RefUnwindSafe for FleetConfig
impl Send for FleetConfig
impl Sync for FleetConfig
impl Unpin for FleetConfig
impl UnsafeUnpin for FleetConfig
impl UnwindSafe for FleetConfig
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