Struct kvproto::pdpb::Region[][src]

pub struct Region {
    pub region: SingularPtrField<Region>,
    pub leader: SingularPtrField<Peer>,
    pub down_peers: RepeatedField<PeerStats>,
    pub pending_peers: RepeatedField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region: SingularPtrField<Region>leader: SingularPtrField<Peer>down_peers: RepeatedField<PeerStats>pending_peers: RepeatedField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Region[src]

pub fn new() -> Region[src]

pub fn get_region(&self) -> &Region[src]

pub fn clear_region(&mut self)[src]

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

pub fn set_region(&mut self, v: Region)[src]

pub fn mut_region(&mut self) -> &mut Region[src]

pub fn take_region(&mut self) -> Region[src]

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

pub fn clear_leader(&mut self)[src]

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

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

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

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

pub fn get_down_peers(&self) -> &[PeerStats][src]

pub fn clear_down_peers(&mut self)[src]

pub fn set_down_peers(&mut self, v: RepeatedField<PeerStats>)[src]

pub fn mut_down_peers(&mut self) -> &mut RepeatedField<PeerStats>[src]

pub fn take_down_peers(&mut self) -> RepeatedField<PeerStats>[src]

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

pub fn clear_pending_peers(&mut self)[src]

pub fn set_pending_peers(&mut self, v: RepeatedField<Peer>)[src]

pub fn mut_pending_peers(&mut self) -> &mut RepeatedField<Peer>[src]

pub fn take_pending_peers(&mut self) -> RepeatedField<Peer>[src]

Trait Implementations

impl Clear for Region[src]

impl Clone for Region[src]

impl Debug for Region[src]

impl Default for Region[src]

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

impl Message for Region[src]

impl PartialEq<Region> for Region[src]

impl PbPrint for Region[src]

impl ProtobufValue for Region[src]

impl StructuralPartialEq for Region[src]

Auto Trait Implementations

impl RefUnwindSafe for Region

impl Send for Region

impl Sync for Region

impl Unpin for Region

impl UnwindSafe for Region

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.