pub struct SetFormatVersionPayload {
pub target: u8,
pub gated_members: BTreeSet<u64>,
}Expand description
Payload of HighWaterCommand::SetFormatVersion: the committed activation
barrier that flips the cluster’s active write version.
gated_members is the exact member set (voters ∪ learners) the leader’s
activation gate observed as capable of reading target at proposal time.
It travels inside the entry because the state-machine apply cannot perform
a live capability query; apply re-validates that the membership committed
as of this entry’s own log position is a subset of gated_members before
taking effect. NodeId is u64 (the type config’s Node id type), so the
set is BTreeSet<u64> — a deterministic, ordered, postcard-stable layout.
Fields§
§target: u8The active write version to flip to on a successful (non-no-op) apply.
gated_members: BTreeSet<u64>Voters ∪ learners the leader gated as target-readable at proposal time.
Trait Implementations§
Source§impl Clone for SetFormatVersionPayload
impl Clone for SetFormatVersionPayload
Source§fn clone(&self) -> SetFormatVersionPayload
fn clone(&self) -> SetFormatVersionPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetFormatVersionPayload
impl Debug for SetFormatVersionPayload
Source§impl<'de> Deserialize<'de> for SetFormatVersionPayload
impl<'de> Deserialize<'de> for SetFormatVersionPayload
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 SetFormatVersionPayload
Source§impl PartialEq for SetFormatVersionPayload
impl PartialEq for SetFormatVersionPayload
Source§impl Serialize for SetFormatVersionPayload
impl Serialize for SetFormatVersionPayload
impl StructuralPartialEq for SetFormatVersionPayload
Auto Trait Implementations§
impl Freeze for SetFormatVersionPayload
impl RefUnwindSafe for SetFormatVersionPayload
impl Send for SetFormatVersionPayload
impl Sync for SetFormatVersionPayload
impl Unpin for SetFormatVersionPayload
impl UnsafeUnpin for SetFormatVersionPayload
impl UnwindSafe for SetFormatVersionPayload
Blanket Implementations§
impl<T> AppDataResponse for Twhere
T: OptionalFeatures + 'static,
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<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>
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>
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 more