Trait tikv_client_store::Request[][src]

pub trait Request: Any + Sync + Send + 'static {
    #[must_use]
    fn dispatch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        client: &'life1 TikvClient,
        options: CallOption
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn label(&self) -> &'static str;
fn as_any(&self) -> &dyn Any;
fn set_context(&mut self, context: Context); }

Required methods

#[must_use]
fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

Loading content...

Implementations on Foreign Types

impl Request for RawGetRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawBatchGetRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawPutRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawBatchPutRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawDeleteRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawBatchDeleteRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawScanRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawBatchScanRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawDeleteRangeRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for RawCasRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for GetRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for ScanRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for PrewriteRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for CommitRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for CleanupRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for BatchGetRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for BatchRollbackRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for PessimisticRollbackRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for ResolveLockRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for ScanLockRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for PessimisticLockRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for TxnHeartBeatRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for CheckTxnStatusRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for CheckSecondaryLocksRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for GcRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

impl Request for DeleteRangeRequest[src]

fn dispatch<'life0, 'life1, 'async_trait>(
    &'life0 self,
    client: &'life1 TikvClient,
    options: CallOption
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Any>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn label(&self) -> &'static str[src]

fn as_any(&self) -> &dyn Any[src]

fn set_context(&mut self, context: Context)[src]

Loading content...

Implementors

Loading content...