Struct kvproto::pdpb::StoreStats[][src]

pub struct StoreStats {
    pub store_id: u64,
    pub capacity: u64,
    pub available: u64,
    pub region_count: u32,
    pub sending_snap_count: u32,
    pub receiving_snap_count: u32,
    pub start_time: u32,
    pub applying_snap_count: u32,
    pub is_busy: bool,
    pub used_size: u64,
    pub bytes_written: u64,
    pub keys_written: u64,
    pub bytes_read: u64,
    pub keys_read: u64,
    pub interval: SingularPtrField<TimeInterval>,
    pub cpu_usages: RepeatedField<RecordPair>,
    pub read_io_rates: RepeatedField<RecordPair>,
    pub write_io_rates: RepeatedField<RecordPair>,
    pub op_latencies: RepeatedField<RecordPair>,
    pub peer_stats: RepeatedField<PeerStat>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

store_id: u64capacity: u64available: u64region_count: u32sending_snap_count: u32receiving_snap_count: u32start_time: u32applying_snap_count: u32is_busy: boolused_size: u64bytes_written: u64keys_written: u64bytes_read: u64keys_read: u64interval: SingularPtrField<TimeInterval>cpu_usages: RepeatedField<RecordPair>read_io_rates: RepeatedField<RecordPair>write_io_rates: RepeatedField<RecordPair>op_latencies: RepeatedField<RecordPair>peer_stats: RepeatedField<PeerStat>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl StoreStats[src]

pub fn new() -> StoreStats[src]

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

pub fn clear_store_id(&mut self)[src]

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

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

pub fn clear_capacity(&mut self)[src]

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

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

pub fn clear_available(&mut self)[src]

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

pub fn get_region_count(&self) -> u32[src]

pub fn clear_region_count(&mut self)[src]

pub fn set_region_count(&mut self, v: u32)[src]

pub fn get_sending_snap_count(&self) -> u32[src]

pub fn clear_sending_snap_count(&mut self)[src]

pub fn set_sending_snap_count(&mut self, v: u32)[src]

pub fn get_receiving_snap_count(&self) -> u32[src]

pub fn clear_receiving_snap_count(&mut self)[src]

pub fn set_receiving_snap_count(&mut self, v: u32)[src]

pub fn get_start_time(&self) -> u32[src]

pub fn clear_start_time(&mut self)[src]

pub fn set_start_time(&mut self, v: u32)[src]

pub fn get_applying_snap_count(&self) -> u32[src]

pub fn clear_applying_snap_count(&mut self)[src]

pub fn set_applying_snap_count(&mut self, v: u32)[src]

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

pub fn clear_is_busy(&mut self)[src]

pub fn set_is_busy(&mut self, v: bool)[src]

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

pub fn clear_used_size(&mut self)[src]

pub fn set_used_size(&mut self, v: u64)[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_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_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_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_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_cpu_usages(&self) -> &[RecordPair][src]

pub fn clear_cpu_usages(&mut self)[src]

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

pub fn mut_cpu_usages(&mut self) -> &mut RepeatedField<RecordPair>[src]

pub fn take_cpu_usages(&mut self) -> RepeatedField<RecordPair>[src]

pub fn get_read_io_rates(&self) -> &[RecordPair][src]

pub fn clear_read_io_rates(&mut self)[src]

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

pub fn mut_read_io_rates(&mut self) -> &mut RepeatedField<RecordPair>[src]

pub fn take_read_io_rates(&mut self) -> RepeatedField<RecordPair>[src]

pub fn get_write_io_rates(&self) -> &[RecordPair][src]

pub fn clear_write_io_rates(&mut self)[src]

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

pub fn mut_write_io_rates(&mut self) -> &mut RepeatedField<RecordPair>[src]

pub fn take_write_io_rates(&mut self) -> RepeatedField<RecordPair>[src]

pub fn get_op_latencies(&self) -> &[RecordPair][src]

pub fn clear_op_latencies(&mut self)[src]

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

pub fn mut_op_latencies(&mut self) -> &mut RepeatedField<RecordPair>[src]

pub fn take_op_latencies(&mut self) -> RepeatedField<RecordPair>[src]

pub fn get_peer_stats(&self) -> &[PeerStat][src]

pub fn clear_peer_stats(&mut self)[src]

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

pub fn mut_peer_stats(&mut self) -> &mut RepeatedField<PeerStat>[src]

pub fn take_peer_stats(&mut self) -> RepeatedField<PeerStat>[src]

Trait Implementations

impl Clear for StoreStats[src]

impl Clone for StoreStats[src]

impl Debug for StoreStats[src]

impl Default for StoreStats[src]

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

impl Message for StoreStats[src]

impl PartialEq<StoreStats> for StoreStats[src]

impl PbPrint for StoreStats[src]

impl ProtobufValue for StoreStats[src]

impl StructuralPartialEq for StoreStats[src]

Auto Trait Implementations

impl RefUnwindSafe for StoreStats

impl Send for StoreStats

impl Sync for StoreStats

impl Unpin for StoreStats

impl UnwindSafe for StoreStats

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.