Struct kvproto::kvrpcpb::LeaderInfo[][src]

pub struct LeaderInfo {
    pub region_id: u64,
    pub peer_id: u64,
    pub term: u64,
    pub region_epoch: SingularPtrField<RegionEpoch>,
    pub read_state: SingularPtrField<ReadState>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64peer_id: u64term: u64region_epoch: SingularPtrField<RegionEpoch>read_state: SingularPtrField<ReadState>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl LeaderInfo[src]

pub fn new() -> LeaderInfo[src]

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

pub fn clear_region_id(&mut self)[src]

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

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

pub fn clear_peer_id(&mut self)[src]

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

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

pub fn clear_term(&mut self)[src]

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

pub fn get_region_epoch(&self) -> &RegionEpoch[src]

pub fn clear_region_epoch(&mut self)[src]

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

pub fn set_region_epoch(&mut self, v: RegionEpoch)[src]

pub fn mut_region_epoch(&mut self) -> &mut RegionEpoch[src]

pub fn take_region_epoch(&mut self) -> RegionEpoch[src]

pub fn get_read_state(&self) -> &ReadState[src]

pub fn clear_read_state(&mut self)[src]

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

pub fn set_read_state(&mut self, v: ReadState)[src]

pub fn mut_read_state(&mut self) -> &mut ReadState[src]

pub fn take_read_state(&mut self) -> ReadState[src]

Trait Implementations

impl Clear for LeaderInfo[src]

impl Clone for LeaderInfo[src]

impl Debug for LeaderInfo[src]

impl Default for LeaderInfo[src]

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

impl Message for LeaderInfo[src]

impl PartialEq<LeaderInfo> for LeaderInfo[src]

impl PbPrint for LeaderInfo[src]

impl ProtobufValue for LeaderInfo[src]

impl StructuralPartialEq for LeaderInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for LeaderInfo

impl Send for LeaderInfo

impl Sync for LeaderInfo

impl Unpin for LeaderInfo

impl UnwindSafe for LeaderInfo

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.