Struct tikv::server::service::KvService [−][src]
Service handles the RPC messages for the Tikv
service.
Fields
store_id: u64
gc_worker: GcWorker<E, T>
Used to handle requests related to GC.
storage: Storage<E, L>
copr: Endpoint<E>
copr_v2: Endpoint
ch: T
snap_scheduler: Scheduler<SnapTask>
enable_req_batch: bool
grpc_thread_load: Arc<ThreadLoad>
proxy: Proxy
Implementations
impl<T: RaftStoreRouter<RocksEngine> + 'static, E: Engine, L: LockManager> Service<T, E, L>
[src]
pub fn new(
store_id: u64,
storage: Storage<E, L>,
gc_worker: GcWorker<E, T>,
copr: Endpoint<E>,
copr_v2: Endpoint,
ch: T,
snap_scheduler: Scheduler<SnapTask>,
grpc_thread_load: Arc<ThreadLoad>,
enable_req_batch: bool,
proxy: Proxy
) -> Self
[src]
store_id: u64,
storage: Storage<E, L>,
gc_worker: GcWorker<E, T>,
copr: Endpoint<E>,
copr_v2: Endpoint,
ch: T,
snap_scheduler: Scheduler<SnapTask>,
grpc_thread_load: Arc<ThreadLoad>,
enable_req_batch: bool,
proxy: Proxy
) -> Self
Constructs a new Service
which provides the Tikv
service.
Trait Implementations
impl<T: RaftStoreRouter<RocksEngine> + Clone + 'static, E: Engine + Clone, L: LockManager + Clone> Clone for Service<T, E, L>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: RaftStoreRouter<RocksEngine> + 'static, E: Engine, L: LockManager> Tikv for Service<T, E, L>
[src]
fn kv_get(
&mut self,
ctx: RpcContext<'_>,
req: GetRequest,
sink: UnarySink<GetResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: GetRequest,
sink: UnarySink<GetResponse>
)
fn kv_scan(
&mut self,
ctx: RpcContext<'_>,
req: ScanRequest,
sink: UnarySink<ScanResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: ScanRequest,
sink: UnarySink<ScanResponse>
)
fn kv_prewrite(
&mut self,
ctx: RpcContext<'_>,
req: PrewriteRequest,
sink: UnarySink<PrewriteResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: PrewriteRequest,
sink: UnarySink<PrewriteResponse>
)
fn kv_pessimistic_lock(
&mut self,
ctx: RpcContext<'_>,
req: PessimisticLockRequest,
sink: UnarySink<PessimisticLockResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: PessimisticLockRequest,
sink: UnarySink<PessimisticLockResponse>
)
fn kv_pessimistic_rollback(
&mut self,
ctx: RpcContext<'_>,
req: PessimisticRollbackRequest,
sink: UnarySink<PessimisticRollbackResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: PessimisticRollbackRequest,
sink: UnarySink<PessimisticRollbackResponse>
)
fn kv_commit(
&mut self,
ctx: RpcContext<'_>,
req: CommitRequest,
sink: UnarySink<CommitResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: CommitRequest,
sink: UnarySink<CommitResponse>
)
fn kv_cleanup(
&mut self,
ctx: RpcContext<'_>,
req: CleanupRequest,
sink: UnarySink<CleanupResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: CleanupRequest,
sink: UnarySink<CleanupResponse>
)
fn kv_batch_get(
&mut self,
ctx: RpcContext<'_>,
req: BatchGetRequest,
sink: UnarySink<BatchGetResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: BatchGetRequest,
sink: UnarySink<BatchGetResponse>
)
fn kv_batch_rollback(
&mut self,
ctx: RpcContext<'_>,
req: BatchRollbackRequest,
sink: UnarySink<BatchRollbackResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: BatchRollbackRequest,
sink: UnarySink<BatchRollbackResponse>
)
fn kv_txn_heart_beat(
&mut self,
ctx: RpcContext<'_>,
req: TxnHeartBeatRequest,
sink: UnarySink<TxnHeartBeatResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: TxnHeartBeatRequest,
sink: UnarySink<TxnHeartBeatResponse>
)
fn kv_check_txn_status(
&mut self,
ctx: RpcContext<'_>,
req: CheckTxnStatusRequest,
sink: UnarySink<CheckTxnStatusResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: CheckTxnStatusRequest,
sink: UnarySink<CheckTxnStatusResponse>
)
fn kv_check_secondary_locks(
&mut self,
ctx: RpcContext<'_>,
req: CheckSecondaryLocksRequest,
sink: UnarySink<CheckSecondaryLocksResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: CheckSecondaryLocksRequest,
sink: UnarySink<CheckSecondaryLocksResponse>
)
fn kv_scan_lock(
&mut self,
ctx: RpcContext<'_>,
req: ScanLockRequest,
sink: UnarySink<ScanLockResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: ScanLockRequest,
sink: UnarySink<ScanLockResponse>
)
fn kv_resolve_lock(
&mut self,
ctx: RpcContext<'_>,
req: ResolveLockRequest,
sink: UnarySink<ResolveLockResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: ResolveLockRequest,
sink: UnarySink<ResolveLockResponse>
)
fn kv_delete_range(
&mut self,
ctx: RpcContext<'_>,
req: DeleteRangeRequest,
sink: UnarySink<DeleteRangeResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: DeleteRangeRequest,
sink: UnarySink<DeleteRangeResponse>
)
fn mvcc_get_by_key(
&mut self,
ctx: RpcContext<'_>,
req: MvccGetByKeyRequest,
sink: UnarySink<MvccGetByKeyResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: MvccGetByKeyRequest,
sink: UnarySink<MvccGetByKeyResponse>
)
fn mvcc_get_by_start_ts(
&mut self,
ctx: RpcContext<'_>,
req: MvccGetByStartTsRequest,
sink: UnarySink<MvccGetByStartTsResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: MvccGetByStartTsRequest,
sink: UnarySink<MvccGetByStartTsResponse>
)
fn raw_get(
&mut self,
ctx: RpcContext<'_>,
req: RawGetRequest,
sink: UnarySink<RawGetResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawGetRequest,
sink: UnarySink<RawGetResponse>
)
fn raw_batch_get(
&mut self,
ctx: RpcContext<'_>,
req: RawBatchGetRequest,
sink: UnarySink<RawBatchGetResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawBatchGetRequest,
sink: UnarySink<RawBatchGetResponse>
)
fn raw_scan(
&mut self,
ctx: RpcContext<'_>,
req: RawScanRequest,
sink: UnarySink<RawScanResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawScanRequest,
sink: UnarySink<RawScanResponse>
)
fn raw_batch_scan(
&mut self,
ctx: RpcContext<'_>,
req: RawBatchScanRequest,
sink: UnarySink<RawBatchScanResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawBatchScanRequest,
sink: UnarySink<RawBatchScanResponse>
)
fn raw_put(
&mut self,
ctx: RpcContext<'_>,
req: RawPutRequest,
sink: UnarySink<RawPutResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawPutRequest,
sink: UnarySink<RawPutResponse>
)
fn raw_batch_put(
&mut self,
ctx: RpcContext<'_>,
req: RawBatchPutRequest,
sink: UnarySink<RawBatchPutResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawBatchPutRequest,
sink: UnarySink<RawBatchPutResponse>
)
fn raw_delete(
&mut self,
ctx: RpcContext<'_>,
req: RawDeleteRequest,
sink: UnarySink<RawDeleteResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawDeleteRequest,
sink: UnarySink<RawDeleteResponse>
)
fn raw_batch_delete(
&mut self,
ctx: RpcContext<'_>,
req: RawBatchDeleteRequest,
sink: UnarySink<RawBatchDeleteResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawBatchDeleteRequest,
sink: UnarySink<RawBatchDeleteResponse>
)
fn raw_delete_range(
&mut self,
ctx: RpcContext<'_>,
req: RawDeleteRangeRequest,
sink: UnarySink<RawDeleteRangeResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawDeleteRangeRequest,
sink: UnarySink<RawDeleteRangeResponse>
)
fn raw_get_key_ttl(
&mut self,
ctx: RpcContext<'_>,
req: RawGetKeyTtlRequest,
sink: UnarySink<RawGetKeyTtlResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawGetKeyTtlRequest,
sink: UnarySink<RawGetKeyTtlResponse>
)
fn raw_compare_and_swap(
&mut self,
ctx: RpcContext<'_>,
req: RawCasRequest,
sink: UnarySink<RawCasResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawCasRequest,
sink: UnarySink<RawCasResponse>
)
fn kv_import(
&mut self,
_: RpcContext<'_>,
_: ImportRequest,
_: UnarySink<ImportResponse>
)
[src]
&mut self,
_: RpcContext<'_>,
_: ImportRequest,
_: UnarySink<ImportResponse>
)
fn kv_gc(
&mut self,
ctx: RpcContext<'_>,
_: GcRequest,
sink: UnarySink<GcResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
_: GcRequest,
sink: UnarySink<GcResponse>
)
fn coprocessor(
&mut self,
ctx: RpcContext<'_>,
req: Request,
sink: UnarySink<Response>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: Request,
sink: UnarySink<Response>
)
fn raw_coprocessor(
&mut self,
ctx: RpcContext<'_>,
req: RawCoprocessorRequest,
sink: UnarySink<RawCoprocessorResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RawCoprocessorRequest,
sink: UnarySink<RawCoprocessorResponse>
)
fn register_lock_observer(
&mut self,
ctx: RpcContext<'_>,
req: RegisterLockObserverRequest,
sink: UnarySink<RegisterLockObserverResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RegisterLockObserverRequest,
sink: UnarySink<RegisterLockObserverResponse>
)
fn check_lock_observer(
&mut self,
ctx: RpcContext<'_>,
req: CheckLockObserverRequest,
sink: UnarySink<CheckLockObserverResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: CheckLockObserverRequest,
sink: UnarySink<CheckLockObserverResponse>
)
fn remove_lock_observer(
&mut self,
ctx: RpcContext<'_>,
req: RemoveLockObserverRequest,
sink: UnarySink<RemoveLockObserverResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: RemoveLockObserverRequest,
sink: UnarySink<RemoveLockObserverResponse>
)
fn physical_scan_lock(
&mut self,
ctx: RpcContext<'_>,
req: PhysicalScanLockRequest,
sink: UnarySink<PhysicalScanLockResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: PhysicalScanLockRequest,
sink: UnarySink<PhysicalScanLockResponse>
)
fn unsafe_destroy_range(
&mut self,
ctx: RpcContext<'_>,
req: UnsafeDestroyRangeRequest,
sink: UnarySink<UnsafeDestroyRangeResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: UnsafeDestroyRangeRequest,
sink: UnarySink<UnsafeDestroyRangeResponse>
)
fn coprocessor_stream(
&mut self,
ctx: RpcContext<'_>,
req: Request,
sink: ServerStreamingSink<Response>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: Request,
sink: ServerStreamingSink<Response>
)
fn raft(
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<RaftMessage>,
sink: ClientStreamingSink<Done>
)
[src]
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<RaftMessage>,
sink: ClientStreamingSink<Done>
)
fn batch_raft(
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<BatchRaftMessage>,
sink: ClientStreamingSink<Done>
)
[src]
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<BatchRaftMessage>,
sink: ClientStreamingSink<Done>
)
fn snapshot(
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<SnapshotChunk>,
sink: ClientStreamingSink<Done>
)
[src]
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<SnapshotChunk>,
sink: ClientStreamingSink<Done>
)
fn split_region(
&mut self,
ctx: RpcContext<'_>,
req: SplitRegionRequest,
sink: UnarySink<SplitRegionResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: SplitRegionRequest,
sink: UnarySink<SplitRegionResponse>
)
fn read_index(
&mut self,
ctx: RpcContext<'_>,
req: ReadIndexRequest,
sink: UnarySink<ReadIndexResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
req: ReadIndexRequest,
sink: UnarySink<ReadIndexResponse>
)
fn batch_commands(
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<BatchCommandsRequest>,
sink: DuplexSink<BatchCommandsResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
stream: RequestStream<BatchCommandsRequest>,
sink: DuplexSink<BatchCommandsResponse>
)
fn batch_coprocessor(
&mut self,
_ctx: RpcContext<'_>,
_req: BatchRequest,
_sink: ServerStreamingSink<BatchResponse>
)
[src]
&mut self,
_ctx: RpcContext<'_>,
_req: BatchRequest,
_sink: ServerStreamingSink<BatchResponse>
)
fn dispatch_mpp_task(
&mut self,
_ctx: RpcContext<'_>,
_req: DispatchTaskRequest,
_sink: UnarySink<DispatchTaskResponse>
)
[src]
&mut self,
_ctx: RpcContext<'_>,
_req: DispatchTaskRequest,
_sink: UnarySink<DispatchTaskResponse>
)
fn cancel_mpp_task(
&mut self,
_ctx: RpcContext<'_>,
_req: CancelTaskRequest,
_sink: UnarySink<CancelTaskResponse>
)
[src]
&mut self,
_ctx: RpcContext<'_>,
_req: CancelTaskRequest,
_sink: UnarySink<CancelTaskResponse>
)
fn establish_mpp_connection(
&mut self,
_ctx: RpcContext<'_>,
_req: EstablishMppConnectionRequest,
_sink: ServerStreamingSink<MppDataPacket>
)
[src]
&mut self,
_ctx: RpcContext<'_>,
_req: EstablishMppConnectionRequest,
_sink: ServerStreamingSink<MppDataPacket>
)
fn check_leader(
&mut self,
ctx: RpcContext<'_>,
request: CheckLeaderRequest,
sink: UnarySink<CheckLeaderResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
request: CheckLeaderRequest,
sink: UnarySink<CheckLeaderResponse>
)
fn get_store_safe_ts(
&mut self,
ctx: RpcContext<'_>,
request: StoreSafeTsRequest,
sink: UnarySink<StoreSafeTsResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
request: StoreSafeTsRequest,
sink: UnarySink<StoreSafeTsResponse>
)
fn get_lock_wait_info(
&mut self,
ctx: RpcContext<'_>,
_request: GetLockWaitInfoRequest,
sink: UnarySink<GetLockWaitInfoResponse>
)
[src]
&mut self,
ctx: RpcContext<'_>,
_request: GetLockWaitInfoRequest,
sink: UnarySink<GetLockWaitInfoResponse>
)
Auto Trait Implementations
impl<T, E, L> !RefUnwindSafe for Service<T, E, L>
impl<T, E, L> Send for Service<T, E, L>
impl<T, E, L> Sync for Service<T, E, L> where
E: Sync,
L: Sync,
T: Sync,
E: Sync,
L: Sync,
T: Sync,
impl<T, E, L> Unpin for Service<T, E, L> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E, L> !UnwindSafe for Service<T, E, L>
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<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>
[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> 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,