Struct raftstore::store::local_metrics::RaftSendMessageMetrics[][src]

pub struct RaftSendMessageMetrics {
    pub append: [u64; 2],
    pub append_resp: [u64; 2],
    pub prevote: [u64; 2],
    pub prevote_resp: [u64; 2],
    pub vote: [u64; 2],
    pub vote_resp: [u64; 2],
    pub snapshot: [u64; 2],
    pub request_snapshot: [u64; 2],
    pub heartbeat: [u64; 2],
    pub heartbeat_resp: [u64; 2],
    pub transfer_leader: [u64; 2],
    pub timeout_now: [u64; 2],
    pub read_index: [u64; 2],
    pub read_index_resp: [u64; 2],
}

The buffered metrics counters for raft message.

Fields

append: [u64; 2]append_resp: [u64; 2]prevote: [u64; 2]prevote_resp: [u64; 2]vote: [u64; 2]vote_resp: [u64; 2]snapshot: [u64; 2]request_snapshot: [u64; 2]heartbeat: [u64; 2]heartbeat_resp: [u64; 2]transfer_leader: [u64; 2]timeout_now: [u64; 2]read_index: [u64; 2]read_index_resp: [u64; 2]

Implementations

impl RaftSendMessageMetrics[src]

fn flush(&mut self)[src]

Flushes all metrics

Trait Implementations

impl Clone for RaftSendMessageMetrics[src]

impl Debug for RaftSendMessageMetrics[src]

impl Default for RaftSendMessageMetrics[src]

Auto Trait Implementations

impl RefUnwindSafe for RaftSendMessageMetrics

impl Send for RaftSendMessageMetrics

impl Sync for RaftSendMessageMetrics

impl Unpin for RaftSendMessageMetrics

impl UnwindSafe for RaftSendMessageMetrics

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]