Struct kvproto::raft_cmdpb::RegionDetailResponse[][src]

pub struct RegionDetailResponse {
    pub region: SingularPtrField<Region>,
    pub leader: SingularPtrField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region: SingularPtrField<Region>leader: SingularPtrField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RegionDetailResponse[src]

pub fn new() -> RegionDetailResponse[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]

Trait Implementations

impl Clear for RegionDetailResponse[src]

impl Clone for RegionDetailResponse[src]

impl Debug for RegionDetailResponse[src]

impl Default for RegionDetailResponse[src]

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

impl Message for RegionDetailResponse[src]

impl PartialEq<RegionDetailResponse> for RegionDetailResponse[src]

impl PbPrint for RegionDetailResponse[src]

impl ProtobufValue for RegionDetailResponse[src]

impl StructuralPartialEq for RegionDetailResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for RegionDetailResponse

impl Send for RegionDetailResponse

impl Sync for RegionDetailResponse

impl Unpin for RegionDetailResponse

impl UnwindSafe for RegionDetailResponse

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.