Struct tikv::server::raftkv::RaftKv [−][src]
RaftKv
is a storage engine base on RaftStore
.
Fields
router: S
engine: E
txn_extra_scheduler: Option<Arc<dyn TxnExtraScheduler>>
Implementations
impl<E, S> RaftKv<E, S> where
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
[src][−]
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
pub fn new(router: S, engine: E) -> RaftKv<E, S>
[src][−]
Create a RaftKv using specified configuration.
pub fn set_txn_extra_scheduler(
&mut self,
txn_extra_scheduler: Arc<dyn TxnExtraScheduler>
)
[src]
&mut self,
txn_extra_scheduler: Arc<dyn TxnExtraScheduler>
)
fn new_request_header(&self, ctx: &Context) -> RaftRequestHeader
[src]
fn exec_snapshot(
&self,
ctx: SnapContext<'_>,
req: Request,
cb: Callback<CmdRes<E::Snapshot>>
) -> Result<()>
[src]
&self,
ctx: SnapContext<'_>,
req: Request,
cb: Callback<CmdRes<E::Snapshot>>
) -> Result<()>
fn exec_write_requests(
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<CmdRes<E::Snapshot>>,
proposed_cb: Option<ExtCallback>,
committed_cb: Option<ExtCallback>
) -> Result<()>
[src]
&self,
ctx: &Context,
batch: WriteData,
write_cb: Callback<CmdRes<E::Snapshot>>,
proposed_cb: Option<ExtCallback>,
committed_cb: Option<ExtCallback>
) -> Result<()>
Trait Implementations
impl<E: Clone, S: Clone> Clone for RaftKv<E, S> where
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
[src][+]
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
impl<E, S> Debug for RaftKv<E, S> where
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
[src][+]
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
impl<E, S> Display for RaftKv<E, S> where
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
[src][+]
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
impl<E, S> Engine for RaftKv<E, S> where
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
[src][+]
E: KvEngine,
S: RaftStoreRouter<E> + LocalReadRouter<E> + 'static,
Auto Trait Implementations
impl<E, S> !RefUnwindSafe for RaftKv<E, S>
impl<E, S> Send for RaftKv<E, S>
impl<E, S> Sync for RaftKv<E, S> where
S: Sync,
S: Sync,
impl<E, S> Unpin for RaftKv<E, S> where
S: Unpin,
S: Unpin,
impl<E, S> !UnwindSafe for RaftKv<E, S>
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> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
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>,