Struct raft_proto::eraftpb::ConfChangeV2 [−][src]
Fields
transition: ConfChangeTransition
changes: RepeatedField<ConfChangeSingle>
context: Bytes
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl ConfChangeV2
[src]
pub fn enter_joint(&self) -> Option<bool>
[src]
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.
pub fn leave_joint(&self) -> bool
[src]
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.
impl ConfChangeV2
[src]
pub fn new() -> ConfChangeV2
[src]
pub fn get_transition(&self) -> ConfChangeTransition
[src]
pub fn clear_transition(&mut self)
[src]
pub fn set_transition(&mut self, v: ConfChangeTransition)
[src]
pub fn get_changes(&self) -> &[ConfChangeSingle]
[src]
pub fn clear_changes(&mut self)
[src]
pub fn set_changes(&mut self, v: RepeatedField<ConfChangeSingle>)
[src]
pub fn mut_changes(&mut self) -> &mut RepeatedField<ConfChangeSingle>
[src]
pub fn take_changes(&mut self) -> RepeatedField<ConfChangeSingle>
[src]
pub fn get_context(&self) -> &[u8]
[src]
pub fn clear_context(&mut self)
[src]
pub fn set_context(&mut self, v: Bytes)
[src]
pub fn mut_context(&mut self) -> &mut Bytes
[src]
pub fn take_context(&mut self) -> Bytes
[src]
Trait Implementations
impl Clear for ConfChangeV2
[src]
impl Clone for ConfChangeV2
[src]
fn clone(&self) -> ConfChangeV2
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConfChangeI for ConfChangeV2
[src]
fn into_v2(self) -> ConfChangeV2
[src]
fn as_v2(&self) -> Cow<'_, ConfChangeV2>
[src]
fn as_v1(&self) -> Option<&ConfChange>
[src]
impl Debug for ConfChangeV2
[src]
impl Default for ConfChangeV2
[src]
fn default() -> ConfChangeV2
[src]
impl<'a> Default for &'a ConfChangeV2
[src]
fn default() -> &'a ConfChangeV2
[src]
impl Message for ConfChangeV2
[src]
fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn new() -> ConfChangeV2
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn default_instance() -> &'static ConfChangeV2
[src]
pub fn write_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
pub fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
pub fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
pub fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
pub fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
pub fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
pub fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
&self
) -> Result<Vec<u8, Global>, ProtobufError>
pub fn type_id(&self) -> TypeId
[src]
impl PartialEq<ConfChangeV2> for ConfChangeV2
[src]
fn eq(&self, other: &ConfChangeV2) -> bool
[src]
fn ne(&self, other: &ConfChangeV2) -> bool
[src]
impl PbPrint for ConfChangeV2
[src]
impl ProtobufValue for ConfChangeV2
[src]
fn as_ref(&self) -> ProtobufValueRef<'_>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn is_non_zero(&self) -> bool
[src]
pub fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
impl StructuralPartialEq for ConfChangeV2
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,