Rerun readmes.sh
This commit is contained in:
parent
02a5a1c92d
commit
f2063d2810
|
@ -19,7 +19,7 @@ implement [Tor](https://www.torproject.org/) in Rust.
|
||||||
|
|
||||||
### Design notes
|
### Design notes
|
||||||
|
|
||||||
The crate is derived into three main parts. In the `parse`
|
The crate is derived into three main parts. In the [`parse`]
|
||||||
module, we have the generic code that we use to parse different
|
module, we have the generic code that we use to parse different
|
||||||
kinds of network documents. In the [`types`] module we have
|
kinds of network documents. In the [`types`] module we have
|
||||||
implementations for parsing specific data structures that are used
|
implementations for parsing specific data structures that are used
|
||||||
|
|
|
@ -59,6 +59,7 @@ to replace the internet _and_ the passage of time. (Here we're only
|
||||||
replacing the internet.)
|
replacing the internet.)
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
|
#
|
||||||
use tor_rtmock::{MockSleepRuntime,MockNetRuntime,net::MockNetwork};
|
use tor_rtmock::{MockSleepRuntime,MockNetRuntime,net::MockNetwork};
|
||||||
use tor_rtcompat::{TcpProvider,TcpListener};
|
use tor_rtcompat::{TcpProvider,TcpListener};
|
||||||
use futures::io::AsyncReadExt;
|
use futures::io::AsyncReadExt;
|
||||||
|
|
|
@ -12,6 +12,7 @@ other parts of Arti.
|
||||||
In particular, it provides:
|
In particular, it provides:
|
||||||
* a bounded i32 with both checked and clamping constructors,
|
* a bounded i32 with both checked and clamping constructors,
|
||||||
* an integer milliseconds wrapper with conversion to [`Duration`]
|
* an integer milliseconds wrapper with conversion to [`Duration`]
|
||||||
|
* an integer seconds wrapper with conversion to [`Duration`]
|
||||||
* a percentage wrapper, to prevent accidental failure
|
* a percentage wrapper, to prevent accidental failure
|
||||||
to divide by 100.
|
to divide by 100.
|
||||||
* a SendMeVersion which can be compared only.
|
* a SendMeVersion which can be compared only.
|
||||||
|
|
Loading…
Reference in New Issue