#[non_exhaustive]pub struct BlueGreenSettings {
pub node_pool_soak_duration: Option<Duration>,
pub rollout_policy: Option<RolloutPolicy>,
}Expand description
Settings for blue-green upgrade.
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.node_pool_soak_duration: Option<Duration>Time needed after draining entire blue pool. After this period, blue pool will be cleaned up.
rollout_policy: Option<RolloutPolicy>The rollout policy controls the general rollout progress of blue-green.
Implementations§
Source§impl BlueGreenSettings
impl BlueGreenSettings
Sourcepub fn set_node_pool_soak_duration<T: Into<Option<Duration>>>(
self,
v: T,
) -> Self
pub fn set_node_pool_soak_duration<T: Into<Option<Duration>>>( self, v: T, ) -> Self
Sets the value of node_pool_soak_duration.
Sourcepub fn set_rollout_policy<T: Into<Option<RolloutPolicy>>>(self, v: T) -> Self
pub fn set_rollout_policy<T: Into<Option<RolloutPolicy>>>(self, v: T) -> Self
Sets the value of rollout_policy.
Sourcepub fn get_standard_rollout_policy(&self) -> Option<&Box<StandardRolloutPolicy>>
pub fn get_standard_rollout_policy(&self) -> Option<&Box<StandardRolloutPolicy>>
The value of rollout_policy
if it holds a StandardRolloutPolicy, None if the field is not set or
holds a different branch.
Sourcepub fn set_standard_rollout_policy<T: Into<Box<StandardRolloutPolicy>>>(
self,
v: T,
) -> Self
pub fn set_standard_rollout_policy<T: Into<Box<StandardRolloutPolicy>>>( self, v: T, ) -> Self
Sets the value of rollout_policy
to hold a StandardRolloutPolicy.
Note that all the setters affecting rollout_policy are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BlueGreenSettings
impl Clone for BlueGreenSettings
Source§fn clone(&self) -> BlueGreenSettings
fn clone(&self) -> BlueGreenSettings
Returns a copy 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 BlueGreenSettings
impl Debug for BlueGreenSettings
Source§impl Default for BlueGreenSettings
impl Default for BlueGreenSettings
Source§fn default() -> BlueGreenSettings
fn default() -> BlueGreenSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlueGreenSettingswhere
BlueGreenSettings: Default,
impl<'de> Deserialize<'de> for BlueGreenSettingswhere
BlueGreenSettings: Default,
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 Message for BlueGreenSettings
impl Message for BlueGreenSettings
Source§impl PartialEq for BlueGreenSettings
impl PartialEq for BlueGreenSettings
Source§impl Serialize for BlueGreenSettings
impl Serialize for BlueGreenSettings
impl StructuralPartialEq for BlueGreenSettings
Auto Trait Implementations§
impl Freeze for BlueGreenSettings
impl RefUnwindSafe for BlueGreenSettings
impl Send for BlueGreenSettings
impl Sync for BlueGreenSettings
impl Unpin for BlueGreenSettings
impl UnwindSafe for BlueGreenSettings
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