Struct kvproto::pdpb::GetRegionResponse[][src]

pub struct GetRegionResponse {
    pub header: SingularPtrField<ResponseHeader>,
    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

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

Implementations

impl GetRegionResponse[src]

pub fn new() -> GetRegionResponse[src]

pub fn get_header(&self) -> &ResponseHeader[src]

pub fn clear_header(&mut self)[src]

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

pub fn set_header(&mut self, v: ResponseHeader)[src]

pub fn mut_header(&mut self) -> &mut ResponseHeader[src]

pub fn take_header(&mut self) -> ResponseHeader[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 GetRegionResponse[src]

impl Clone for GetRegionResponse[src]

impl Debug for GetRegionResponse[src]

impl Default for GetRegionResponse[src]

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

impl Message for GetRegionResponse[src]

impl PartialEq<GetRegionResponse> for GetRegionResponse[src]

impl PbPrint for GetRegionResponse[src]

impl ProtobufValue for GetRegionResponse[src]

impl StructuralPartialEq for GetRegionResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for GetRegionResponse

impl Send for GetRegionResponse

impl Sync for GetRegionResponse

impl Unpin for GetRegionResponse

impl UnwindSafe for GetRegionResponse

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.