Struct raft_proto::eraftpb::ConfChangeV2 [−][src]
pub struct ConfChangeV2 { pub transition: ConfChangeTransition, pub changes: RepeatedField<ConfChangeSingle>, pub context: Bytes, pub unknown_fields: UnknownFields, pub cached_size: CachedSize, }
Fields
transition: ConfChangeTransition
changes: RepeatedField<ConfChangeSingle>
context: Bytes
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
Checks if uses Joint Consensus.
It will return Some if and only if this config change will use Joint Consensus, which is the case if it contains more than one change or if the use of Joint Consensus was requested explicitly. The bool indicates whether the Joint State will be left automatically.
Checks if the configuration change leaves a joint configuration.
This is the case if the ConfChangeV2 is zero, with the possible exception of the Context field.
Trait Implementations
Converts conf change to ConfChangeV2
.
Gets conf change as ConfChangeV2
.
Converts conf change to ConfChange
. Read more
Returns the “default value” for a type. Read more
Returns the “default value” for a type. Read more
True iff all required fields are initialized.
Always returns true
for protobuf 3. Read more
Update this message object with fields read from given stream.
Compute and cache size of this message and all nested messages
Write message to the stream. Read more
Get size previously computed by compute_size
.
Get a reference to unknown fields.
Get a mutable reference to unknown fields.
View self as mutable Any
.
Message descriptor for this message, used for reflection.
Create an empty message object. Read more
Get message descriptor for message type. Read more
Return a pointer to default immutable message with static lifetime. Read more
Parse message from stream.
Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]Write the message to the vec, prepend the message with message length encoded as varint. Read more
Update this message object with fields read from given stream.
Parse message from reader. Parse stops on EOF or when error encountered. Read more
Parse message from byte array.
Parse message from Bytes
object.
Resulting message may share references to the passed bytes object. Read more
Check if all required fields of this object are initialized.
Write the message to the writer.
Write the message to bytes vec.
Write the message to bytes vec.
Write the message to the writer, prepend the message with message length encoded as varint. Read more
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ConfChangeV2
impl Send for ConfChangeV2
impl Sync for ConfChangeV2
impl Unpin for ConfChangeV2
impl UnwindSafe for ConfChangeV2
Blanket Implementations
Mutably borrows from an owned value. Read more