@@ -64,7 +64,7 @@ impl<C: RawCodec> Client<C> {
64
64
/// # use futures::prelude::*;
65
65
/// use tikv_client::raw::ApiV1;
66
66
/// # futures::executor::block_on(async {
67
- /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None)
67
+ /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , None)
68
68
/// .await
69
69
/// .unwrap();
70
70
/// # });
@@ -94,7 +94,7 @@ impl<C: RawCodec> Client<C> {
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
- /// ApiV1,
97
+ /// ApiV1::default() ,
98
98
/// None,
99
99
/// )
100
100
/// .await
@@ -147,7 +147,7 @@ impl<C: RawCodec> Client<C> {
147
147
/// # use std::convert::TryInto;
148
148
/// use tikv_client::raw::ApiV1;
149
149
/// # futures::executor::block_on(async {
150
- /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None)
150
+ /// let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , None)
151
151
/// .await
152
152
/// .unwrap()
153
153
/// .with_cf(ColumnFamily::Write);
@@ -203,7 +203,7 @@ where
203
203
/// # use futures::prelude::*;
204
204
/// use tikv_client::raw::ApiV1;
205
205
/// # futures::executor::block_on(async {
206
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
206
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -238,7 +238,7 @@ where
238
238
/// # use futures::prelude::*;
239
239
/// use tikv_client::raw::ApiV1;
240
240
/// # futures::executor::block_on(async {
241
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
241
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -278,7 +278,7 @@ where
278
278
/// # use futures::prelude::*;
279
279
/// use tikv_client::raw::ApiV1;
280
280
/// # futures::executor::block_on(async {
281
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
281
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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);
@@ -317,7 +317,7 @@ where
317
317
/// # use futures::prelude::*;
318
318
/// use tikv_client::raw::ApiV1;
319
319
/// # futures::executor::block_on(async {
320
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
320
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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];
@@ -364,7 +364,7 @@ where
364
364
/// # use futures::prelude::*;
365
365
/// use tikv_client::raw::ApiV1;
366
366
/// # futures::executor::block_on(async {
367
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
367
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , None).await.unwrap();
368
368
/// let key = "TiKV".to_owned();
369
369
/// let req = client.delete(key);
370
370
/// let result: () = req.await.unwrap();
@@ -399,7 +399,7 @@ where
399
399
/// # use futures::prelude::*;
400
400
/// use tikv_client::raw::ApiV1;
401
401
/// # futures::executor::block_on(async {
402
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
402
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -437,7 +437,7 @@ where
437
437
/// # use futures::prelude::*;
438
438
/// use tikv_client::raw::ApiV1;
439
439
/// # futures::executor::block_on(async {
440
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
440
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -478,7 +478,7 @@ where
478
478
/// # use futures::prelude::*;
479
479
/// use tikv_client::raw::ApiV1;
480
480
/// # futures::executor::block_on(async {
481
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
481
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -513,7 +513,7 @@ where
513
513
/// # use futures::prelude::*;
514
514
/// use tikv_client::raw::ApiV1;
515
515
/// # futures::executor::block_on(async {
516
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
516
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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();
@@ -556,7 +556,7 @@ where
556
556
/// # use futures::prelude::*;
557
557
/// use tikv_client::raw::ApiV1;
558
558
/// # futures::executor::block_on(async {
559
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
559
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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()];
@@ -601,7 +601,7 @@ where
601
601
/// # use futures::prelude::*;
602
602
/// use tikv_client::raw::ApiV1;
603
603
/// # futures::executor::block_on(async {
604
- /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1, None).await.unwrap();
604
+ /// # let client = RawClient::new(vec!["192.168.0.100"], ApiV1::default() , 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