Trait tikv::coprocessor::RequestHandler [−][src]
An interface for all kind of Coprocessor request handlers.
Provided methods
fn handle_request<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Processes current request and produces a response.
fn handle_streaming_request(&mut self) -> Result<(Option<Response>, bool)>
[src]
Processes current request and produces streaming responses.
fn collect_scan_statistics(&mut self, _dest: &mut Statistics)
[src]
Collects scan statistics generated in this request handler so far.
fn into_boxed(self) -> Box<dyn RequestHandler> where
Self: 'static + Sized,
[src]
Self: 'static + Sized,
Implementors
impl RequestHandler for CachedRequestHandler
[src]
fn handle_request<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl RequestHandler for BatchDAGHandler
[src]
fn handle_request<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn handle_streaming_request(&mut self) -> Result<(Option<Response>, bool)>
[src]
fn collect_scan_statistics(&mut self, dest: &mut Statistics)
[src]
impl<S: Snapshot> RequestHandler for ChecksumContext<S>
[src]
fn handle_request<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn collect_scan_statistics(&mut self, dest: &mut Statistics)
[src]
impl<S: Snapshot> RequestHandler for AnalyzeContext<S>
[src]
fn handle_request<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,