#[non_exhaustive]pub struct StartupConfig {
pub required_registration_fraction: Option<f64>,
/* private fields */
}Expand description
Configuration to handle the startup of instances during cluster create and update process.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.required_registration_fraction: Option<f64>Optional. The config setting to enable cluster creation/ updation to be successful only after required_registration_fraction of instances are up and running. This configuration is applicable to only secondary workers for now. The cluster will fail if required_registration_fraction of instances are not available. This will include instance creation, agent registration, and service registration (if enabled).
Implementations§
Source§impl StartupConfig
impl StartupConfig
pub fn new() -> Self
Sourcepub fn set_required_registration_fraction<T>(self, v: T) -> Self
pub fn set_required_registration_fraction<T>(self, v: T) -> Self
Sets the value of required_registration_fraction.
Sourcepub fn set_or_clear_required_registration_fraction<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_required_registration_fraction<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of required_registration_fraction.
Trait Implementations§
Source§impl Clone for StartupConfig
impl Clone for StartupConfig
Source§fn clone(&self) -> StartupConfig
fn clone(&self) -> StartupConfig
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 StartupConfig
impl Debug for StartupConfig
Source§impl Default for StartupConfig
impl Default for StartupConfig
Source§fn default() -> StartupConfig
fn default() -> StartupConfig
Returns the “default value” for a type. Read more
Source§impl Message for StartupConfig
impl Message for StartupConfig
Source§impl PartialEq for StartupConfig
impl PartialEq for StartupConfig
impl StructuralPartialEq for StartupConfig
Auto Trait Implementations§
impl Freeze for StartupConfig
impl RefUnwindSafe for StartupConfig
impl Send for StartupConfig
impl Sync for StartupConfig
impl Unpin for StartupConfig
impl UnwindSafe for StartupConfig
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