Struct kvproto::pdpb::SyncRegionResponse[][src]

pub struct SyncRegionResponse {
    pub header: SingularPtrField<ResponseHeader>,
    pub regions: RepeatedField<Region>,
    pub start_index: u64,
    pub region_stats: RepeatedField<RegionStat>,
    pub region_leaders: RepeatedField<Peer>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

header: SingularPtrField<ResponseHeader>regions: RepeatedField<Region>start_index: u64region_stats: RepeatedField<RegionStat>region_leaders: RepeatedField<Peer>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl SyncRegionResponse[src]

pub fn new() -> SyncRegionResponse[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_regions(&self) -> &[Region][src]

pub fn clear_regions(&mut self)[src]

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

pub fn mut_regions(&mut self) -> &mut RepeatedField<Region>[src]

pub fn take_regions(&mut self) -> RepeatedField<Region>[src]

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

pub fn clear_start_index(&mut self)[src]

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

pub fn get_region_stats(&self) -> &[RegionStat][src]

pub fn clear_region_stats(&mut self)[src]

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

pub fn mut_region_stats(&mut self) -> &mut RepeatedField<RegionStat>[src]

pub fn take_region_stats(&mut self) -> RepeatedField<RegionStat>[src]

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

pub fn clear_region_leaders(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for SyncRegionResponse[src]

impl Clone for SyncRegionResponse[src]

impl Debug for SyncRegionResponse[src]

impl Default for SyncRegionResponse[src]

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

impl Message for SyncRegionResponse[src]

impl PartialEq<SyncRegionResponse> for SyncRegionResponse[src]

impl PbPrint for SyncRegionResponse[src]

impl ProtobufValue for SyncRegionResponse[src]

impl StructuralPartialEq for SyncRegionResponse[src]

Auto Trait Implementations

impl RefUnwindSafe for SyncRegionResponse

impl Send for SyncRegionResponse

impl Sync for SyncRegionResponse

impl Unpin for SyncRegionResponse

impl UnwindSafe for SyncRegionResponse

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.