pub enum ClusterStartMode {
Bootstrap,
Join,
}Expand description
Cluster startup mode for a durable member.
Restarting members keep their stored raft identity and log. The configured mode remains authoritative so a retained late-join volume is re-admitted by the live cluster instead of bootstrapping from a stale removed ConfState.
Variants§
Bootstrap
Bootstrap a new cluster or bootstrap cohort.
Join
Join an already bootstrapped cluster through seed members.
Trait Implementations§
Source§impl Clone for ClusterStartMode
impl Clone for ClusterStartMode
Source§fn clone(&self) -> ClusterStartMode
fn clone(&self) -> ClusterStartMode
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 moreimpl Copy for ClusterStartMode
Source§impl Debug for ClusterStartMode
impl Debug for ClusterStartMode
Source§impl Default for ClusterStartMode
impl Default for ClusterStartMode
Source§fn default() -> ClusterStartMode
fn default() -> ClusterStartMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterStartMode
impl<'de> Deserialize<'de> for ClusterStartMode
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
impl Eq for ClusterStartMode
Source§impl PartialEq for ClusterStartMode
impl PartialEq for ClusterStartMode
Source§impl Serialize for ClusterStartMode
impl Serialize for ClusterStartMode
impl StructuralPartialEq for ClusterStartMode
Auto Trait Implementations§
impl Freeze for ClusterStartMode
impl RefUnwindSafe for ClusterStartMode
impl Send for ClusterStartMode
impl Sync for ClusterStartMode
impl Unpin for ClusterStartMode
impl UnsafeUnpin for ClusterStartMode
impl UnwindSafe for ClusterStartMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request