@@ -62,9 +62,9 @@ impl<C: RawCodec> Client<C> {
62
62
/// ```rust,no_run
63
63
/// # use tikv_client::RawClient;
64
64
/// # use futures::prelude::*;
65
- /// use tikv_client::request::codec::RawApiV1 ;
65
+ /// use tikv_client::raw::ApiV1 ;
66
66
/// # futures::executor::block_on(async {
67
- /// let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None)
67
+ /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None)
68
68
/// .await
69
69
/// .unwrap();
70
70
/// # });
@@ -89,12 +89,12 @@ impl<C: RawCodec> Client<C> {
89
89
/// # use tikv_client::{Config, RawClient};
90
90
/// # use futures::prelude::*;
91
91
/// # use std::time::Duration;
92
- /// use tikv_client::request::codec::RawApiV1 ;
92
+ /// use tikv_client::raw::ApiV1 ;
93
93
/// # futures::executor::block_on(async {
94
94
/// let client = RawClient::new_with_config(
95
95
/// vec!["192.168.0.100"],
96
96
/// Config::default().with_timeout(Duration::from_secs(60)),
97
- /// RawApiV1 ,
97
+ /// ApiV1 ,
98
98
/// None,
99
99
/// )
100
100
/// .await
@@ -145,9 +145,9 @@ impl<C: RawCodec> Client<C> {
145
145
/// # use tikv_client::{Config, RawClient, ColumnFamily};
146
146
/// # use futures::prelude::*;
147
147
/// # use std::convert::TryInto;
148
- /// use tikv_client::request::codec::RawApiV1 ;
148
+ /// use tikv_client::raw::ApiV1 ;
149
149
/// # futures::executor::block_on(async {
150
- /// let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None)
150
+ /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None)
151
151
/// .await
152
152
/// .unwrap()
153
153
/// .with_cf(ColumnFamily::Write);
@@ -201,9 +201,9 @@ where
201
201
/// ```rust,no_run
202
202
/// # use tikv_client::{Value, Config, RawClient};
203
203
/// # use futures::prelude::*;
204
- /// use tikv_client::request::codec::RawApiV1 ;
204
+ /// use tikv_client::raw::ApiV1 ;
205
205
/// # futures::executor::block_on(async {
206
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
206
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
207
207
/// let key = "TiKV".to_owned();
208
208
/// let req = client.get(key);
209
209
/// let result: Option<Value> = req.await.unwrap();
@@ -236,9 +236,9 @@ where
236
236
/// ```rust,no_run
237
237
/// # use tikv_client::{KvPair, Config, RawClient};
238
238
/// # use futures::prelude::*;
239
- /// use tikv_client::request::codec::RawApiV1 ;
239
+ /// use tikv_client::raw::ApiV1 ;
240
240
/// # futures::executor::block_on(async {
241
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
241
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
242
242
/// let keys = vec!["TiKV".to_owned(), "TiDB".to_owned()];
243
243
/// let req = client.batch_get(keys);
244
244
/// let result: Vec<KvPair> = req.await.unwrap();
@@ -276,9 +276,9 @@ where
276
276
/// ```rust,no_run
277
277
/// # use tikv_client::{Key, Value, Config, RawClient};
278
278
/// # use futures::prelude::*;
279
- /// use tikv_client::request::codec::RawApiV1 ;
279
+ /// use tikv_client::raw::ApiV1 ;
280
280
/// # futures::executor::block_on(async {
281
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
281
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
282
282
/// let key = "TiKV".to_owned();
283
283
/// let val = "TiKV".to_owned();
284
284
/// let req = client.put(key, val);
@@ -315,9 +315,9 @@ where
315
315
/// ```rust,no_run
316
316
/// # use tikv_client::{Result, KvPair, Key, Value, Config, RawClient, IntoOwnedRange};
317
317
/// # use futures::prelude::*;
318
- /// use tikv_client::request::codec::RawApiV1 ;
318
+ /// use tikv_client::raw::ApiV1 ;
319
319
/// # futures::executor::block_on(async {
320
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
320
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
321
321
/// let kvpair1 = ("PD".to_owned(), "Go".to_owned());
322
322
/// let kvpair2 = ("TiKV".to_owned(), "Rust".to_owned());
323
323
/// let iterable = vec![kvpair1, kvpair2];
@@ -362,9 +362,9 @@ where
362
362
/// ```rust,no_run
363
363
/// # use tikv_client::{Key, Config, RawClient};
364
364
/// # use futures::prelude::*;
365
- /// use tikv_client::request::codec::RawApiV1 ;
365
+ /// use tikv_client::raw::ApiV1 ;
366
366
/// # futures::executor::block_on(async {
367
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
367
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
368
368
/// let key = "TiKV".to_owned();
369
369
/// let req = client.delete(key);
370
370
/// let result: () = req.await.unwrap();
@@ -397,9 +397,9 @@ where
397
397
/// ```rust,no_run
398
398
/// # use tikv_client::{Config, RawClient};
399
399
/// # use futures::prelude::*;
400
- /// use tikv_client::request::codec::RawApiV1 ;
400
+ /// use tikv_client::raw::ApiV1 ;
401
401
/// # futures::executor::block_on(async {
402
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
402
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
403
403
/// let keys = vec!["TiKV".to_owned(), "TiDB".to_owned()];
404
404
/// let req = client.batch_delete(keys);
405
405
/// let result: () = req.await.unwrap();
@@ -435,9 +435,9 @@ where
435
435
/// ```rust,no_run
436
436
/// # use tikv_client::{Key, Config, RawClient, IntoOwnedRange};
437
437
/// # use futures::prelude::*;
438
- /// use tikv_client::request::codec::RawApiV1 ;
438
+ /// use tikv_client::raw::ApiV1 ;
439
439
/// # futures::executor::block_on(async {
440
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
440
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
441
441
/// let inclusive_range = "TiKV"..="TiDB";
442
442
/// let req = client.delete_range(inclusive_range.into_owned());
443
443
/// let result: () = req.await.unwrap();
@@ -476,9 +476,9 @@ where
476
476
/// ```rust,no_run
477
477
/// # use tikv_client::{KvPair, Config, RawClient, IntoOwnedRange};
478
478
/// # use futures::prelude::*;
479
- /// use tikv_client::request::codec::RawApiV1 ;
479
+ /// use tikv_client::raw::ApiV1 ;
480
480
/// # futures::executor::block_on(async {
481
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
481
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
482
482
/// let inclusive_range = "TiKV"..="TiDB";
483
483
/// let req = client.scan(inclusive_range.into_owned(), 2);
484
484
/// let result: Vec<KvPair> = req.await.unwrap();
@@ -511,9 +511,9 @@ where
511
511
/// ```rust,no_run
512
512
/// # use tikv_client::{Key, Config, RawClient, IntoOwnedRange};
513
513
/// # use futures::prelude::*;
514
- /// use tikv_client::request::codec::RawApiV1 ;
514
+ /// use tikv_client::raw::ApiV1 ;
515
515
/// # futures::executor::block_on(async {
516
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
516
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
517
517
/// let inclusive_range = "TiKV"..="TiDB";
518
518
/// let req = client.scan_keys(inclusive_range.into_owned(), 2);
519
519
/// let result: Vec<Key> = req.await.unwrap();
@@ -554,9 +554,9 @@ where
554
554
/// ```rust,no_run
555
555
/// # use tikv_client::{Key, Config, RawClient, IntoOwnedRange};
556
556
/// # use futures::prelude::*;
557
- /// use tikv_client::request::codec::RawApiV1 ;
557
+ /// use tikv_client::raw::ApiV1 ;
558
558
/// # futures::executor::block_on(async {
559
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
559
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
560
560
/// let inclusive_range1 = "TiDB"..="TiKV";
561
561
/// let inclusive_range2 = "TiKV"..="TiSpark";
562
562
/// let iterable = vec![inclusive_range1.into_owned(), inclusive_range2.into_owned()];
@@ -599,9 +599,9 @@ where
599
599
/// ```rust,no_run
600
600
/// # use tikv_client::{Key, Config, RawClient, IntoOwnedRange};
601
601
/// # use futures::prelude::*;
602
- /// use tikv_client::request::codec::RawApiV1 ;
602
+ /// use tikv_client::raw::ApiV1 ;
603
603
/// # futures::executor::block_on(async {
604
- /// # let client = RawClient::new(vec!["192.168.0.100"], RawApiV1 , None).await.unwrap();
604
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1 , None).await.unwrap();
605
605
/// let inclusive_range1 = "TiDB"..="TiKV";
606
606
/// let inclusive_range2 = "TiKV"..="TiSpark";
607
607
/// let iterable = vec![inclusive_range1.into_owned(), inclusive_range2.into_owned()];
0 commit comments