pub struct BootstrapConfig {
pub bootstrap_policy: Option<BootstrapPolicy>,
pub silent_bootstrap: bool,
pub concurrent_bootstrap: bool,
}Expand description
Bootstrap-related configuration for a deployment start request.
Fields§
§bootstrap_policy: Option<BootstrapPolicy>Bootstrap policy.
silent_bootstrap: boolBootstrap the pipeline with output connectors disabled.
concurrent_bootstrap: boolBootstrap new and modified views concurrently, keeping the pre-existing views live while the new ones backfill in the background.
Mutually exclusive with silent_bootstrap. When set, a circuit that
cannot be bootstrapped concurrently fails the pipeline instead of
falling back to a stop-the-world bootstrap.
Implementations§
Source§impl BootstrapConfig
impl BootstrapConfig
pub fn with_silent_bootstrap(self, silent_bootstrap: bool) -> Self
pub fn with_concurrent_bootstrap(self, concurrent_bootstrap: bool) -> Self
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Validates that the bootstrap options are mutually consistent.
silent_bootstrap and concurrent_bootstrap cannot both be set:
silent bootstrap suppresses outputs during a stop-the-world bootstrap,
whereas concurrent bootstrap keeps the old views (and their outputs)
live, so the two requests contradict each other.
Sourcepub fn active_bootstrap_policy(&self) -> BootstrapPolicy
pub fn active_bootstrap_policy(&self) -> BootstrapPolicy
Returns the bootstrap policy for an active deployment.
Trait Implementations§
Source§impl Clone for BootstrapConfig
impl Clone for BootstrapConfig
Source§fn clone(&self) -> BootstrapConfig
fn clone(&self) -> BootstrapConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for BootstrapConfig
Source§impl Debug for BootstrapConfig
impl Debug for BootstrapConfig
Source§impl Default for BootstrapConfig
impl Default for BootstrapConfig
Source§fn default() -> BootstrapConfig
fn default() -> BootstrapConfig
Source§impl<'de> Deserialize<'de> for BootstrapConfig
impl<'de> Deserialize<'de> for BootstrapConfig
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>,
impl Eq for BootstrapConfig
Source§impl From<BootstrapPolicy> for BootstrapConfig
impl From<BootstrapPolicy> for BootstrapConfig
Source§fn from(bootstrap_policy: BootstrapPolicy) -> Self
fn from(bootstrap_policy: BootstrapPolicy) -> Self
Source§impl PartialEq for BootstrapConfig
impl PartialEq for BootstrapConfig
Source§impl Serialize for BootstrapConfig
impl Serialize for BootstrapConfig
impl StructuralPartialEq for BootstrapConfig
Auto Trait Implementations§
impl Freeze for BootstrapConfig
impl RefUnwindSafe for BootstrapConfig
impl Send for BootstrapConfig
impl Sync for BootstrapConfig
impl Unpin for BootstrapConfig
impl UnsafeUnpin for BootstrapConfig
impl UnwindSafe for BootstrapConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.