Struct kvproto::raft_serverpb::RegionLocalState[][src]

pub struct RegionLocalState {
    pub state: PeerState,
    pub region: SingularPtrField<Region>,
    pub merge_state: SingularPtrField<MergeState>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

state: PeerStateregion: SingularPtrField<Region>merge_state: SingularPtrField<MergeState>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RegionLocalState[src]

pub fn new() -> RegionLocalState[src]

pub fn get_state(&self) -> PeerState[src]

pub fn clear_state(&mut self)[src]

pub fn set_state(&mut self, v: PeerState)[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_merge_state(&self) -> &MergeState[src]

pub fn clear_merge_state(&mut self)[src]

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

pub fn set_merge_state(&mut self, v: MergeState)[src]

pub fn mut_merge_state(&mut self) -> &mut MergeState[src]

pub fn take_merge_state(&mut self) -> MergeState[src]

Trait Implementations

impl Clear for RegionLocalState[src]

impl Clone for RegionLocalState[src]

impl Debug for RegionLocalState[src]

impl Default for RegionLocalState[src]

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

impl Message for RegionLocalState[src]

impl PartialEq<RegionLocalState> for RegionLocalState[src]

impl PbPrint for RegionLocalState[src]

impl ProtobufValue for RegionLocalState[src]

impl StructuralPartialEq for RegionLocalState[src]

Auto Trait Implementations

impl RefUnwindSafe for RegionLocalState

impl Send for RegionLocalState

impl Sync for RegionLocalState

impl Unpin for RegionLocalState

impl UnwindSafe for RegionLocalState

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.