Struct raftstore::store::worker::pd::StatsMonitor[][src]

struct StatsMonitor<E> where
    E: KvEngine
{ scheduler: Scheduler<Task<E>>, handle: Option<JoinHandle<()>>, timer: Option<Sender<bool>>, sender: Option<Sender<ReadStats>>, thread_info_interval: Duration, qps_info_interval: Duration, collect_interval: Duration, }

Fields

scheduler: Scheduler<Task<E>>handle: Option<JoinHandle<()>>timer: Option<Sender<bool>>sender: Option<Sender<ReadStats>>thread_info_interval: Durationqps_info_interval: Durationcollect_interval: Duration

Implementations

impl<E> StatsMonitor<E> where
    E: KvEngine
[src]

pub fn new(interval: Duration, scheduler: Scheduler<Task<E>>) -> Self[src]

pub fn start(
    &mut self,
    auto_split_controller: AutoSplitController
) -> Result<(), Error>
[src]

pub fn stop(&mut self)[src]

pub fn get_sender(&self) -> &Option<Sender<ReadStats>>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for StatsMonitor<E>

impl<E> Send for StatsMonitor<E>

impl<E> !Sync for StatsMonitor<E>

impl<E> Unpin for StatsMonitor<E>

impl<E> !UnwindSafe for StatsMonitor<E>

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, 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]