Struct pd_client::client::DummyPdClient [−][src]
Fields
next_ts: TimeStamp
Implementations
impl DummyPdClient
[src]
pub fn new() -> DummyPdClient
[src]
Trait Implementations
impl PdClient for DummyPdClient
[src]
fn get_tso(&self) -> PdFuture<TimeStamp>
[src]
fn get_cluster_id(&self) -> Result<u64>
[src]
fn bootstrap_cluster(
&self,
_stores: Store,
_region: Region
) -> Result<Option<ReplicationStatus>>
[src]
&self,
_stores: Store,
_region: Region
) -> Result<Option<ReplicationStatus>>
fn is_cluster_bootstrapped(&self) -> Result<bool>
[src]
fn alloc_id(&self) -> Result<u64>
[src]
fn put_store(&self, _store: Store) -> Result<Option<ReplicationStatus>>
[src]
fn get_store(&self, _store_id: u64) -> Result<Store>
[src]
fn get_store_async(&self, _store_id: u64) -> PdFuture<Store>
[src]
fn get_all_stores(&self, _exclude_tombstone: bool) -> Result<Vec<Store>>
[src]
fn get_cluster_config(&self) -> Result<Cluster>
[src]
fn get_region(&self, _key: &[u8]) -> Result<Region>
[src]
fn get_region_async<'k>(
&'k self,
_key: &'k [u8]
) -> BoxFuture<'k, Result<Region>>
[src]
&'k self,
_key: &'k [u8]
) -> BoxFuture<'k, Result<Region>>
fn get_region_info(&self, _key: &[u8]) -> Result<RegionInfo>
[src]
fn get_region_info_async<'k>(
&'k self,
_key: &'k [u8]
) -> BoxFuture<'k, Result<RegionInfo>>
[src]
&'k self,
_key: &'k [u8]
) -> BoxFuture<'k, Result<RegionInfo>>
fn get_region_by_id(&self, _region_id: u64) -> PdFuture<Option<Region>>
[src]
fn get_region_leader_by_id(
&self,
_region_id: u64
) -> PdFuture<Option<(Region, Peer)>>
[src]
&self,
_region_id: u64
) -> PdFuture<Option<(Region, Peer)>>
fn region_heartbeat(
&self,
_term: u64,
_region: Region,
_leader: Peer,
_region_stat: RegionStat,
_replication_status: Option<RegionReplicationStatus>
) -> PdFuture<()>
[src]
&self,
_term: u64,
_region: Region,
_leader: Peer,
_region_stat: RegionStat,
_replication_status: Option<RegionReplicationStatus>
) -> PdFuture<()>
fn handle_region_heartbeat_response<F>(
&self,
_store_id: u64,
_f: F
) -> PdFuture<()> where
Self: Sized,
F: Fn(RegionHeartbeatResponse) + Send + 'static,
[src]
&self,
_store_id: u64,
_f: F
) -> PdFuture<()> where
Self: Sized,
F: Fn(RegionHeartbeatResponse) + Send + 'static,
fn ask_split(&self, _region: Region) -> PdFuture<AskSplitResponse>
[src]
fn ask_batch_split(
&self,
_region: Region,
_count: usize
) -> PdFuture<AskBatchSplitResponse>
[src]
&self,
_region: Region,
_count: usize
) -> PdFuture<AskBatchSplitResponse>
fn store_heartbeat(
&self,
_stats: StoreStats
) -> PdFuture<StoreHeartbeatResponse>
[src]
&self,
_stats: StoreStats
) -> PdFuture<StoreHeartbeatResponse>
fn report_batch_split(&self, _regions: Vec<Region>) -> PdFuture<()>
[src]
fn scatter_region(&self, _: RegionInfo) -> Result<()>
[src]
fn handle_reconnect<F: Fn() + Sync + Send + 'static>(&self, _: F) where
Self: Sized,
[src]
Self: Sized,
fn get_gc_safe_point(&self) -> PdFuture<u64>
[src]
fn get_store_stats_async(
&self,
_store_id: u64
) -> BoxFuture<'_, Result<StoreStats>>
[src]
&self,
_store_id: u64
) -> BoxFuture<'_, Result<StoreStats>>
fn get_operator(&self, _region_id: u64) -> Result<GetOperatorResponse>
[src]
fn feature_gate(&self) -> &FeatureGate
[src]
Auto Trait Implementations
impl RefUnwindSafe for DummyPdClient
impl Send for DummyPdClient
impl Sync for DummyPdClient
impl Unpin for DummyPdClient
impl UnwindSafe for DummyPdClient
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,