Struct kvproto::metapb::Cluster[][src]

pub struct Cluster {
    pub id: u64,
    pub max_peer_count: u32,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

id: u64max_peer_count: u32unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Cluster[src]

pub fn new() -> Cluster[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_max_peer_count(&self) -> u32[src]

pub fn clear_max_peer_count(&mut self)[src]

pub fn set_max_peer_count(&mut self, v: u32)[src]

Trait Implementations

impl Clear for Cluster[src]

impl Clone for Cluster[src]

impl Debug for Cluster[src]

impl Default for Cluster[src]

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

impl Message for Cluster[src]

impl PartialEq<Cluster> for Cluster[src]

impl PbPrint for Cluster[src]

impl ProtobufValue for Cluster[src]

impl StructuralPartialEq for Cluster[src]

Auto Trait Implementations

impl RefUnwindSafe for Cluster

impl Send for Cluster

impl Sync for Cluster

impl Unpin for Cluster

impl UnwindSafe for Cluster

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.