Struct raftstore::coprocessor::region_info_accessor::RegionInfoAccessor[][src]

pub struct RegionInfoAccessor {
    worker: Worker,
    scheduler: Scheduler<RegionInfoQuery>,
}

RegionInfoAccessor keeps all region information separately from raftstore itself.

Fields

worker: Workerscheduler: Scheduler<RegionInfoQuery>

Implementations

impl RegionInfoAccessor[src]

pub fn new(host: &mut CoprocessorHost<impl KvEngine>) -> Self[src]

Creates a new RegionInfoAccessor and register to host. RegionInfoAccessor doesn’t need, and should not be created more than once. If it’s needed in different places, just clone it, and their contents are shared.

pub fn stop(&self)[src]

Stops the RegionInfoAccessor. It should be stopped after raftstore.

pub fn debug_dump(&self) -> (HashMap<u64, RegionInfo>, BTreeMap<Vec<u8>, u64>)[src]

Gets all content from the collection. Only used for testing.

Trait Implementations

impl Clone for RegionInfoAccessor[src]

impl RegionInfoProvider for RegionInfoAccessor[src]

Auto Trait Implementations

impl !RefUnwindSafe for RegionInfoAccessor

impl Send for RegionInfoAccessor

impl Sync for RegionInfoAccessor

impl Unpin for RegionInfoAccessor

impl !UnwindSafe for RegionInfoAccessor

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