Skip to content

Commit e468181

Browse files
committed
Replace path links with logical links in docs
Signed-off-by: Nick Cameron <nrc@ncameron.org>
1 parent 182aebb commit e468181

File tree

5 files changed

+62
-62
lines changed

5 files changed

+62
-62
lines changed

src/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
use serde_derive::{Deserialize, Serialize};
44
use std::{path::PathBuf, time::Duration};
55

6-
/// The configuration for either a [`raw::Client`](raw/struct.Client.html) or a
7-
/// [`transaction::Client`](transaction/struct.Client.html).
6+
/// The configuration for either a [`raw::Client`](super::raw::Client) or a
7+
/// [`transaction::Client`](super::transaction::Client).
88
///
99
/// Because TiKV is managed by a [PD](https://github.com/pingcap/pd/) cluster, the endpoints for PD
1010
/// must be provided, **not** the TiKV nodes.
@@ -34,7 +34,7 @@ pub struct Config {
3434
const DEFAULT_REQUEST_TIMEOUT: Duration = Duration::from_secs(2);
3535

3636
impl Config {
37-
/// Create a new [`Config`](struct.Config.html) which coordinates with the given PD endpoints.
37+
/// Create a new [`Config`](Config) which coordinates with the given PD endpoints.
3838
///
3939
/// It's important to **include more than one PD endpoint** (include all, if possible!)
4040
/// This helps avoid having a *single point of failure*.
@@ -54,7 +54,7 @@ impl Config {
5454
}
5555

5656
/// Set the certificate authority, certificate, and key locations for the
57-
/// [`Config`](struct.Config.html).
57+
/// [`Config`](Config).
5858
///
5959
/// By default, TiKV connections do not utilize transport layer security. Enable it by setting
6060
/// these values.

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,5 +241,5 @@ impl From<kvproto::kvrpcpb::KeyError> for Error {
241241
}
242242
}
243243

244-
/// A result holding an [`Error`](enum.Error.html).
244+
/// A result holding an [`Error`](Error).
245245
pub type Result<T> = result::Result<T, Error>;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//! ## Connect
5151
//!
5252
//! Regardless of which API you choose, you'll need to connect your client
53-
//! ([raw](raw/struct.Client.html), [transactional](transaction/struct.Client.html)).
53+
//! ([raw](raw::Client), [transactional](transaction::Client)).
5454
//!
5555
//! ```rust
5656
//! # #![feature(async_await)]

src/raw.rs

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
//! Raw related functionality.
44
//!
5-
//! Using the [`raw::Client`](struct.Client.html) you can utilize TiKV's raw interface.
5+
//! Using the [`raw::Client`](raw::Client) you can utilize TiKV's raw interface.
66
//!
77
//! This interface offers optimal performance as it does not require coordination with a timestamp
88
//! oracle, while the transactional interface does.
@@ -20,13 +20,13 @@ use std::{
2020

2121
const MAX_RAW_KV_SCAN_LIMIT: u32 = 10240;
2222

23-
/// The TiKV raw [`Client`](struct.Client.html) is used to issue requests to the TiKV server and PD cluster.
23+
/// The TiKV raw [`Client`](Client) is used to issue requests to the TiKV server and PD cluster.
2424
pub struct Client {
2525
rpc: Arc<RpcClient>,
2626
}
2727

2828
impl Client {
29-
/// Create a new [`Client`](struct.Client.html) once the [`Connect`](struct.Connect.html) resolves.
29+
/// Create a new [`Client`](Client) once the [`Connect`](Connect) resolves.
3030
///
3131
/// ```rust,no_run
3232
/// # #![feature(async_await)]
@@ -47,7 +47,7 @@ impl Client {
4747
Arc::clone(&self.rpc)
4848
}
4949

50-
/// Create a new [`Get`](struct.Get.html) request.
50+
/// Create a new [`Get`](Get) request.
5151
///
5252
/// Once resolved this request will result in the fetching of the value associated with the
5353
/// given key.
@@ -68,7 +68,7 @@ impl Client {
6868
Get::new(self.rpc(), GetInner::new(key.into()))
6969
}
7070

71-
/// Create a new [`BatchGet`](struct.BatchGet.html) request.
71+
/// Create a new [`BatchGet`](BatchGet) request.
7272
///
7373
/// Once resolved this request will result in the fetching of the values associated with the
7474
/// given keys.
@@ -92,7 +92,7 @@ impl Client {
9292
)
9393
}
9494

95-
/// Create a new [`Put`](struct.Put.html) request.
95+
/// Create a new [`Put`](Put) request.
9696
///
9797
/// Once resolved this request will result in the setting of the value associated with the given key.
9898
///
@@ -113,7 +113,7 @@ impl Client {
113113
Put::new(self.rpc(), PutInner::new(key.into(), value.into()))
114114
}
115115

116-
/// Create a new [`BatchPut`](struct.BatchPut.html) request.
116+
/// Create a new [`BatchPut`](BatchPut) request.
117117
///
118118
/// Once resolved this request will result in the setting of the value associated with the given key.
119119
///
@@ -138,7 +138,7 @@ impl Client {
138138
)
139139
}
140140

141-
/// Create a new [`Delete`](struct.Delete.html) request.
141+
/// Create a new [`Delete`](Delete) request.
142142
///
143143
/// Once resolved this request will result in the deletion of the given key.
144144
///
@@ -158,7 +158,7 @@ impl Client {
158158
Delete::new(self.rpc(), DeleteInner::new(key.into()))
159159
}
160160

161-
/// Create a new [`BatchDelete`](struct.BatchDelete.html) request.
161+
/// Create a new [`BatchDelete`](BatchDelete) request.
162162
///
163163
/// Once resolved this request will result in the deletion of the given keys.
164164
///
@@ -181,7 +181,7 @@ impl Client {
181181
)
182182
}
183183

184-
/// Create a new [`Scan`](struct.Scan.html) request.
184+
/// Create a new [`Scan`](Scan) request.
185185
///
186186
/// Once resolved this request will result in a scanner over the given keys.
187187
///
@@ -201,7 +201,7 @@ impl Client {
201201
Scan::new(self.rpc(), ScanInner::new(range.into_bounds(), limit))
202202
}
203203

204-
/// Create a new [`BatchScan`](struct.BatchScan.html) request.
204+
/// Create a new [`BatchScan`](BatchScan) request.
205205
///
206206
/// Once resolved this request will result in a set of scanners over the given keys.
207207
///
@@ -233,7 +233,7 @@ impl Client {
233233
)
234234
}
235235

236-
/// Create a new [`DeleteRange`](struct.DeleteRange.html) request.
236+
/// Create a new [`DeleteRange`](DeleteRange) request.
237237
///
238238
/// Once resolved this request will result in the deletion of all keys over the given range.
239239
///
@@ -254,9 +254,9 @@ impl Client {
254254
}
255255
}
256256

257-
/// An unresolved [`Client`](struct.Client.html) connection to a TiKV cluster.
257+
/// An unresolved [`Client`](Client) connection to a TiKV cluster.
258258
///
259-
/// Once resolved it will result in a connected [`Client`](struct.Client.html).
259+
/// Once resolved it will result in a connected [`Client`](Client).
260260
///
261261
/// ```rust,no_run
262262
/// # #![feature(async_await)]
@@ -288,7 +288,7 @@ impl Future for Connect {
288288
}
289289
}
290290

291-
/// A [`ColumnFamily`](struct.ColumnFamily.html) is an optional parameter for [`raw::Client`](struct.Client.html) requests.
291+
/// A [`ColumnFamily`](ColumnFamily) is an optional parameter for [`raw::Client`](Client) requests.
292292
///
293293
/// TiKV uses RocksDB's `ColumnFamily` support. You can learn more about RocksDB's `ColumnFamily`s [on their wiki](https://github.com/facebook/rocksdb/wiki/Column-Families).
294294
///
@@ -300,7 +300,7 @@ impl Future for Connect {
300300
///
301301
/// Not providing a call a `ColumnFamily` means it will use the default value of `default`.
302302
///
303-
/// The best (and only) way to create a [`ColumnFamily`](struct.ColumnFamily.html) is via the `From` implementation:
303+
/// The best (and only) way to create a [`ColumnFamily`](ColumnFamily) is via the `From` implementation:
304304
///
305305
/// ```rust
306306
/// # use tikv_client::raw::ColumnFamily;
@@ -405,7 +405,7 @@ where
405405
}
406406
}
407407

408-
/// An unresolved [`Client::get`](struct.Client.html#method.get) request.
408+
/// An unresolved [`Client::get`](Client::get) request.
409409
///
410410
/// Once resolved this request will result in the fetching of the value associated with the given
411411
/// key.
@@ -420,7 +420,7 @@ impl Get {
420420
}
421421
}
422422

423-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
423+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
424424
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
425425
self.state.cf(cf);
426426
self
@@ -457,7 +457,7 @@ impl RequestInner for GetInner {
457457
}
458458
}
459459

460-
/// An unresolved [`Client::batch_get`](struct.Client.html#method.batch_get) request.
460+
/// An unresolved [`Client::batch_get`](Client::batch_get) request.
461461
///
462462
/// Once resolved this request will result in the fetching of the values associated with the given
463463
/// keys.
@@ -472,7 +472,7 @@ impl BatchGet {
472472
}
473473
}
474474

475-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
475+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
476476
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
477477
self.state.cf(cf);
478478
self
@@ -509,7 +509,7 @@ impl BatchGetInner {
509509
}
510510
}
511511

512-
/// An unresolved [`Client::put`](struct.Client.html#method.put) request.
512+
/// An unresolved [`Client::put`](Client::put) request.
513513
///
514514
/// Once resolved this request will result in the putting of the value associated with the given
515515
/// key.
@@ -524,7 +524,7 @@ impl Put {
524524
}
525525
}
526526

527-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
527+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
528528
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
529529
self.state.cf(cf);
530530
self
@@ -559,7 +559,7 @@ impl RequestInner for PutInner {
559559
}
560560
}
561561

562-
/// An unresolved [`Client::batch_put`](struct.Client.html#method.batch_put) request.
562+
/// An unresolved [`Client::batch_put`](Client::batch_put) request.
563563
///
564564
/// Once resolved this request will result in the setting of the value associated with the given key.
565565
pub struct BatchPut {
@@ -573,7 +573,7 @@ impl BatchPut {
573573
}
574574
}
575575

576-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
576+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
577577
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
578578
self.state.cf(cf);
579579
self
@@ -606,7 +606,7 @@ impl RequestInner for BatchPutInner {
606606
}
607607
}
608608

609-
/// An unresolved [`Client::delete`](struct.Client.html#method.delete) request.
609+
/// An unresolved [`Client::delete`](Client::delete) request.
610610
///
611611
/// Once resolved this request will result in the deletion of the given key.
612612
pub struct Delete {
@@ -620,7 +620,7 @@ impl Delete {
620620
}
621621
}
622622

623-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
623+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
624624
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
625625
self.state.cf(cf);
626626
self
@@ -653,7 +653,7 @@ impl RequestInner for DeleteInner {
653653
}
654654
}
655655

656-
/// An unresolved [`Client::batch_delete`](struct.Client.html#method.batch_delete) request.
656+
/// An unresolved [`Client::batch_delete`](Client::batch_delete) request.
657657
///
658658
/// Once resolved this request will result in the deletion of the given keys.
659659
pub struct BatchDelete {
@@ -667,7 +667,7 @@ impl BatchDelete {
667667
}
668668
}
669669

670-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
670+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
671671
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
672672
self.state.cf(cf);
673673
self
@@ -739,7 +739,7 @@ impl RequestInner for ScanInner {
739739
}
740740
}
741741

742-
/// An unresolved [`Client::scan`](struct.Client.html#method.scan) request.
742+
/// An unresolved [`Client::scan`](Client::scan) request.
743743
///
744744
/// Once resolved this request will result in a scanner over the given range.
745745
pub struct Scan {
@@ -753,7 +753,7 @@ impl Scan {
753753
}
754754
}
755755

756-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
756+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
757757
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
758758
self.state.cf(cf);
759759
self
@@ -818,7 +818,7 @@ impl RequestInner for BatchScanInner {
818818
}
819819
}
820820

821-
/// An unresolved [`Client::batch_scan`](struct.Client.html#method.batch_scan) request.
821+
/// An unresolved [`Client::batch_scan`](Client::batch_scan) request.
822822
///
823823
/// Once resolved this request will result in a scanner over the given ranges.
824824
pub struct BatchScan {
@@ -832,7 +832,7 @@ impl BatchScan {
832832
}
833833
}
834834

835-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
835+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
836836
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
837837
self.state.cf(cf);
838838
self
@@ -854,7 +854,7 @@ impl Future for BatchScan {
854854
}
855855
}
856856

857-
/// An unresolved [`Client::delete_range`](struct.Client.html#method.delete_range) request.
857+
/// An unresolved [`Client::delete_range`](Client::delete_range) request.
858858
///
859859
/// Once resolved this request will result in the deletion of the values in the given
860860
/// range.
@@ -869,7 +869,7 @@ impl DeleteRange {
869869
}
870870
}
871871

872-
/// Set the (optional) [`ColumnFamily`](struct.ColumnFamily.html).
872+
/// Set the (optional) [`ColumnFamily`](ColumnFamily).
873873
pub fn cf(mut self, cf: impl Into<ColumnFamily>) -> Self {
874874
self.state.cf(cf);
875875
self

0 commit comments

Comments
 (0)