Struct kvproto::raft_cmdpb::ChangePeerRequest[][src]

pub struct ChangePeerRequest {
    pub change_type: ConfChangeType,
    pub peer: SingularPtrField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

change_type: ConfChangeTypepeer: SingularPtrField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl ChangePeerRequest[src]

pub fn new() -> ChangePeerRequest[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_peer(&self) -> &Peer[src]

pub fn clear_peer(&mut self)[src]

pub fn has_peer(&self) -> bool[src]

pub fn set_peer(&mut self, v: Peer)[src]

pub fn mut_peer(&mut self) -> &mut Peer[src]

pub fn take_peer(&mut self) -> Peer[src]

Trait Implementations

impl Clear for ChangePeerRequest[src]

impl Clone for ChangePeerRequest[src]

impl Debug for ChangePeerRequest[src]

impl Default for ChangePeerRequest[src]

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

impl Message for ChangePeerRequest[src]

impl PartialEq<ChangePeerRequest> for ChangePeerRequest[src]

impl PbPrint for ChangePeerRequest[src]

impl ProtobufValue for ChangePeerRequest[src]

impl StructuralPartialEq for ChangePeerRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ChangePeerRequest

impl Send for ChangePeerRequest

impl Sync for ChangePeerRequest

impl Unpin for ChangePeerRequest

impl UnwindSafe for ChangePeerRequest

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.