Struct raft_proto::eraftpb::ConfChange[][src]

pub struct ConfChange {
    pub change_type: ConfChangeType,
    pub node_id: u64,
    pub context: Bytes,
    pub id: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

change_type: ConfChangeTypenode_id: u64context: Bytesid: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl ConfChange[src]

pub fn new() -> ConfChange[src]

pub fn get_change_type(&self) -> ConfChangeType[src]

pub fn clear_change_type(&mut self)[src]

pub fn set_change_type(&mut self, v: ConfChangeType)[src]

pub fn get_node_id(&self) -> u64[src]

pub fn clear_node_id(&mut self)[src]

pub fn set_node_id(&mut self, v: u64)[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]

pub fn get_id(&self) -> u64[src]

pub fn clear_id(&mut self)[src]

pub fn set_id(&mut self, v: u64)[src]

Trait Implementations

impl Clear for ConfChange[src]

impl Clone for ConfChange[src]

impl ConfChangeI for ConfChange[src]

impl Debug for ConfChange[src]

impl Default for ConfChange[src]

impl<'a> Default for &'a ConfChange[src]

impl Message for ConfChange[src]

impl PartialEq<ConfChange> for ConfChange[src]

impl PbPrint for ConfChange[src]

impl ProtobufValue for ConfChange[src]

impl StructuralPartialEq for ConfChange[src]

Auto Trait Implementations

impl RefUnwindSafe for ConfChange

impl Send for ConfChange

impl Sync for ConfChange

impl Unpin for ConfChange

impl UnwindSafe for ConfChange

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.