#[non_exhaustive]pub struct SurvivabilityConfig {
pub offline_reboot_ttl: Option<Duration>,
/* private fields */
}Expand description
Configuration of the cluster survivability, e.g., for the case when network connectivity is lost.
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.offline_reboot_ttl: Option<Duration>Optional. Time period that allows the cluster nodes to be rebooted and become functional without network connectivity to Google. The default 0 means not allowed. The maximum is 7 days.
Implementations§
Source§impl SurvivabilityConfig
impl SurvivabilityConfig
pub fn new() -> Self
Sourcepub fn set_offline_reboot_ttl<T>(self, v: T) -> Self
pub fn set_offline_reboot_ttl<T>(self, v: T) -> Self
Sets the value of offline_reboot_ttl.
Sourcepub fn set_or_clear_offline_reboot_ttl<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_offline_reboot_ttl<T>(self, v: Option<T>) -> Self
Sets or clears the value of offline_reboot_ttl.
Trait Implementations§
Source§impl Clone for SurvivabilityConfig
impl Clone for SurvivabilityConfig
Source§fn clone(&self) -> SurvivabilityConfig
fn clone(&self) -> SurvivabilityConfig
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 SurvivabilityConfig
impl Debug for SurvivabilityConfig
Source§impl Default for SurvivabilityConfig
impl Default for SurvivabilityConfig
Source§fn default() -> SurvivabilityConfig
fn default() -> SurvivabilityConfig
Returns the “default value” for a type. Read more
Source§impl Message for SurvivabilityConfig
impl Message for SurvivabilityConfig
Source§impl PartialEq for SurvivabilityConfig
impl PartialEq for SurvivabilityConfig
impl StructuralPartialEq for SurvivabilityConfig
Auto Trait Implementations§
impl Freeze for SurvivabilityConfig
impl RefUnwindSafe for SurvivabilityConfig
impl Send for SurvivabilityConfig
impl Sync for SurvivabilityConfig
impl Unpin for SurvivabilityConfig
impl UnwindSafe for SurvivabilityConfig
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