Trait test_pd::mocker::PdMocker [−][src]
Provided methods
fn get_members(
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
[src]
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
fn tso(&self, _: &TsoRequest) -> Option<Result<TsoResponse>>
[src]
fn bootstrap(&self, _: &BootstrapRequest) -> Option<Result<BootstrapResponse>>
[src]
fn is_bootstrapped(
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
[src]
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
fn alloc_id(&self, _: &AllocIdRequest) -> Option<Result<AllocIdResponse>>
[src]
fn get_store(&self, _: &GetStoreRequest) -> Option<Result<GetStoreResponse>>
[src]
fn put_store(&self, _: &PutStoreRequest) -> Option<Result<PutStoreResponse>>
[src]
fn get_all_stores(
&self,
_: &GetAllStoresRequest
) -> Option<Result<GetAllStoresResponse>>
[src]
&self,
_: &GetAllStoresRequest
) -> Option<Result<GetAllStoresResponse>>
fn store_heartbeat(
&self,
_: &StoreHeartbeatRequest
) -> Option<Result<StoreHeartbeatResponse>>
[src]
&self,
_: &StoreHeartbeatRequest
) -> Option<Result<StoreHeartbeatResponse>>
fn region_heartbeat(
&self,
_: &RegionHeartbeatRequest
) -> Option<Result<RegionHeartbeatResponse>>
[src]
&self,
_: &RegionHeartbeatRequest
) -> Option<Result<RegionHeartbeatResponse>>
fn get_region(&self, _: &GetRegionRequest) -> Option<Result<GetRegionResponse>>
[src]
fn get_region_by_id(
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
fn ask_split(&self, _: &AskSplitRequest) -> Option<Result<AskSplitResponse>>
[src]
fn ask_batch_split(
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
[src]
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
fn report_batch_split(
&self,
_: &ReportBatchSplitRequest
) -> Option<Result<ReportBatchSplitResponse>>
[src]
&self,
_: &ReportBatchSplitRequest
) -> Option<Result<ReportBatchSplitResponse>>
fn get_cluster_config(
&self,
_: &GetClusterConfigRequest
) -> Option<Result<GetClusterConfigResponse>>
[src]
&self,
_: &GetClusterConfigRequest
) -> Option<Result<GetClusterConfigResponse>>
fn put_cluster_config(
&self,
_: &PutClusterConfigRequest
) -> Option<Result<PutClusterConfigResponse>>
[src]
&self,
_: &PutClusterConfigRequest
) -> Option<Result<PutClusterConfigResponse>>
fn scatter_region(
&self,
_: &ScatterRegionRequest
) -> Option<Result<ScatterRegionResponse>>
[src]
&self,
_: &ScatterRegionRequest
) -> Option<Result<ScatterRegionResponse>>
fn set_endpoints(&self, _: Vec<String>)
[src]
fn update_gc_safe_point(
&self,
_: &UpdateGcSafePointRequest
) -> Option<Result<UpdateGcSafePointResponse>>
[src]
&self,
_: &UpdateGcSafePointRequest
) -> Option<Result<UpdateGcSafePointResponse>>
fn get_gc_safe_point(
&self,
_: &GetGcSafePointRequest
) -> Option<Result<GetGcSafePointResponse>>
[src]
&self,
_: &GetGcSafePointRequest
) -> Option<Result<GetGcSafePointResponse>>
fn get_operator(
&self,
_: &GetOperatorRequest
) -> Option<Result<GetOperatorResponse>>
[src]
&self,
_: &GetOperatorRequest
) -> Option<Result<GetOperatorResponse>>
Implementors
impl PdMocker for AlreadyBootstrapped
[src]
fn bootstrap(&self, _: &BootstrapRequest) -> Option<Result<BootstrapResponse>>
[src]
fn is_bootstrapped(
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
[src]
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
impl PdMocker for Incompatible
[src]
fn ask_batch_split(
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
[src]
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
impl PdMocker for LeaderChange
[src]
fn get_members(
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
[src]
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
fn get_region_by_id(
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
fn set_endpoints(&self, eps: Vec<String>)
[src]
impl PdMocker for NotRetry
[src]
fn get_region_by_id(
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
fn get_store(&self, _: &GetStoreRequest) -> Option<Result<GetStoreResponse>>
[src]
impl PdMocker for Retry
[src]
fn get_region_by_id(
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
_: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
fn get_store(&self, _: &GetStoreRequest) -> Option<Result<GetStoreResponse>>
[src]
impl PdMocker for Service
[src]
fn get_members(
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
[src]
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
fn bootstrap(&self, req: &BootstrapRequest) -> Option<Result<BootstrapResponse>>
[src]
fn is_bootstrapped(
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
[src]
&self,
_: &IsBootstrappedRequest
) -> Option<Result<IsBootstrappedResponse>>
fn alloc_id(&self, _: &AllocIdRequest) -> Option<Result<AllocIdResponse>>
[src]
fn get_store(&self, req: &GetStoreRequest) -> Option<Result<GetStoreResponse>>
[src]
fn get_all_stores(
&self,
req: &GetAllStoresRequest
) -> Option<Result<GetAllStoresResponse>>
[src]
&self,
req: &GetAllStoresRequest
) -> Option<Result<GetAllStoresResponse>>
fn get_region(
&self,
req: &GetRegionRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
req: &GetRegionRequest
) -> Option<Result<GetRegionResponse>>
fn get_region_by_id(
&self,
req: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
[src]
&self,
req: &GetRegionByIdRequest
) -> Option<Result<GetRegionResponse>>
fn region_heartbeat(
&self,
req: &RegionHeartbeatRequest
) -> Option<Result<RegionHeartbeatResponse>>
[src]
&self,
req: &RegionHeartbeatRequest
) -> Option<Result<RegionHeartbeatResponse>>
fn store_heartbeat(
&self,
_: &StoreHeartbeatRequest
) -> Option<Result<StoreHeartbeatResponse>>
[src]
&self,
_: &StoreHeartbeatRequest
) -> Option<Result<StoreHeartbeatResponse>>
fn ask_split(&self, _: &AskSplitRequest) -> Option<Result<AskSplitResponse>>
[src]
fn ask_batch_split(
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
[src]
&self,
_: &AskBatchSplitRequest
) -> Option<Result<AskBatchSplitResponse>>
fn report_batch_split(
&self,
_: &ReportBatchSplitRequest
) -> Option<Result<ReportBatchSplitResponse>>
[src]
&self,
_: &ReportBatchSplitRequest
) -> Option<Result<ReportBatchSplitResponse>>
fn scatter_region(
&self,
_: &ScatterRegionRequest
) -> Option<Result<ScatterRegionResponse>>
[src]
&self,
_: &ScatterRegionRequest
) -> Option<Result<ScatterRegionResponse>>
fn set_endpoints(&self, eps: Vec<String>)
[src]
fn get_operator(
&self,
_: &GetOperatorRequest
) -> Option<Result<GetOperatorResponse>>
[src]
&self,
_: &GetOperatorRequest
) -> Option<Result<GetOperatorResponse>>
fn put_store(&self, _: &PutStoreRequest) -> Option<Result<PutStoreResponse>>
[src]
fn get_cluster_config(
&self,
_: &GetClusterConfigRequest
) -> Option<Result<GetClusterConfigResponse>>
[src]
&self,
_: &GetClusterConfigRequest
) -> Option<Result<GetClusterConfigResponse>>
fn get_gc_safe_point(
&self,
_: &GetGcSafePointRequest
) -> Option<Result<GetGcSafePointResponse>>
[src]
&self,
_: &GetGcSafePointRequest
) -> Option<Result<GetGcSafePointResponse>>
impl PdMocker for Split
[src]
fn get_members(
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>
[src]
&self,
_: &GetMembersRequest
) -> Option<Result<GetMembersResponse>>