Struct tikv::server::service::KvService[][src]

pub struct KvService<T: RaftStoreRouter<RocksEngine> + 'static, E: Engine, L: LockManager> {
    store_id: u64,
    gc_worker: GcWorker<E, T>,
    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,
}

Service handles the RPC messages for the Tikv service.

Fields

store_id: u64gc_worker: GcWorker<E, T>

Used to handle requests related to GC.

storage: Storage<E, L>copr: Endpoint<E>copr_v2: Endpointch: Tsnap_scheduler: Scheduler<SnapTask>enable_req_batch: boolgrpc_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]

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]

impl<T: RaftStoreRouter<RocksEngine> + 'static, E: Engine, L: LockManager> Tikv for Service<T, E, L>[src]

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

impl<T, E, L> Unpin for Service<T, E, L> where
    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]

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]