Struct kvproto::pdpb::RegionHeartbeatRequest[][src]

pub struct RegionHeartbeatRequest {
    pub header: SingularPtrField<RequestHeader>,
    pub region: SingularPtrField<Region>,
    pub leader: SingularPtrField<Peer>,
    pub down_peers: RepeatedField<PeerStats>,
    pub pending_peers: RepeatedField<Peer>,
    pub bytes_written: u64,
    pub bytes_read: u64,
    pub keys_written: u64,
    pub keys_read: u64,
    pub approximate_size: u64,
    pub interval: SingularPtrField<TimeInterval>,
    pub approximate_keys: u64,
    pub term: u64,
    pub replication_status: SingularPtrField<RegionReplicationStatus>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

header: SingularPtrField<RequestHeader>region: SingularPtrField<Region>leader: SingularPtrField<Peer>down_peers: RepeatedField<PeerStats>pending_peers: RepeatedField<Peer>bytes_written: u64bytes_read: u64keys_written: u64keys_read: u64approximate_size: u64interval: SingularPtrField<TimeInterval>approximate_keys: u64term: u64replication_status: SingularPtrField<RegionReplicationStatus>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl RegionHeartbeatRequest[src]

pub fn new() -> RegionHeartbeatRequest[src]

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

pub fn clear_header(&mut self)[src]

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

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

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

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

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

pub fn clear_bytes_written(&mut self)[src]

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

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

pub fn clear_bytes_read(&mut self)[src]

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

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

pub fn clear_keys_written(&mut self)[src]

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

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

pub fn clear_keys_read(&mut self)[src]

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

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

pub fn clear_approximate_size(&mut self)[src]

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

pub fn get_interval(&self) -> &TimeInterval[src]

pub fn clear_interval(&mut self)[src]

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

pub fn set_interval(&mut self, v: TimeInterval)[src]

pub fn mut_interval(&mut self) -> &mut TimeInterval[src]

pub fn take_interval(&mut self) -> TimeInterval[src]

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

pub fn clear_approximate_keys(&mut self)[src]

pub fn set_approximate_keys(&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_replication_status(&self) -> &RegionReplicationStatus[src]

pub fn clear_replication_status(&mut self)[src]

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

pub fn set_replication_status(&mut self, v: RegionReplicationStatus)[src]

pub fn mut_replication_status(&mut self) -> &mut RegionReplicationStatus[src]

pub fn take_replication_status(&mut self) -> RegionReplicationStatus[src]

Trait Implementations

impl Clear for RegionHeartbeatRequest[src]

impl Clone for RegionHeartbeatRequest[src]

impl Debug for RegionHeartbeatRequest[src]

impl Default for RegionHeartbeatRequest[src]

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

impl Message for RegionHeartbeatRequest[src]

impl PartialEq<RegionHeartbeatRequest> for RegionHeartbeatRequest[src]

impl PbPrint for RegionHeartbeatRequest[src]

impl ProtobufValue for RegionHeartbeatRequest[src]

impl StructuralPartialEq for RegionHeartbeatRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for RegionHeartbeatRequest

impl Send for RegionHeartbeatRequest

impl Sync for RegionHeartbeatRequest

impl Unpin for RegionHeartbeatRequest

impl UnwindSafe for RegionHeartbeatRequest

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.