Struct kvproto::metapb::Peer[][src]

pub struct Peer {
    pub id: u64,
    pub store_id: u64,
    pub role: PeerRole,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

id: u64store_id: u64role: PeerRoleunknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Peer[src]

pub fn new() -> Peer[src]

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

pub fn clear_id(&mut self)[src]

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

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

pub fn clear_store_id(&mut self)[src]

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

pub fn get_role(&self) -> PeerRole[src]

pub fn clear_role(&mut self)[src]

pub fn set_role(&mut self, v: PeerRole)[src]

Trait Implementations

impl Clear for Peer[src]

impl Clone for Peer[src]

impl Debug for Peer[src]

impl Default for Peer[src]

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

impl Message for Peer[src]

impl PartialEq<Peer> for Peer[src]

impl PbPrint for Peer[src]

impl ProtobufValue for Peer[src]

impl StructuralPartialEq for Peer[src]

Auto Trait Implementations

impl RefUnwindSafe for Peer

impl Send for Peer

impl Sync for Peer

impl Unpin for Peer

impl UnwindSafe for Peer

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.