Struct raftstore::coprocessor::region_info_accessor::RegionInfoAccessor [−][src]
RegionInfoAccessor
keeps all region information separately from raftstore itself.
Fields
worker: Worker
scheduler: 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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src][+]
W: ConvertTo<V>,
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][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,