Commit 26e2142
committed
Implement
Provide blanket implementations:
- `impl<R: AsyncRead + ?Sized> AsyncRead for &mut R` and
- `impl<W: AsyncWrite + ?Sized> AsyncWrite for &mut W`
This is similar to what is done for similar traits in `std::io` ([`Read`](https://doc.rust-lang.org/stable/std/io/trait.Read.html#impl-Read-for-%26mut+R), [`Write`](https://doc.rust-lang.org/stable/std/io/trait.Write.html#impl-Write-for-%26mut+W)), `futures-io` ([`AsyncRead`](https://docs.rs/futures-io/latest/futures_io/trait.AsyncRead.html#impl-AsyncRead-for-%26mut+T), [`AsyncWrite`](https://docs.rs/futures-io/latest/futures_io/trait.AsyncWrite.html#impl-AsyncWrite-for-%26mut+T)), and `tokio` ([`AsyncRead`](https://docs.rs/tokio/latest/tokio/io/trait.AsyncRead.html#impl-AsyncRead-for-%26mut+T), [`AsyncWrite`](https://docs.rs/tokio/latest/tokio/io/trait.AsyncWrite.html#impl-AsyncWrite-for-%26mut+T)).AsyncRead/AsyncWrite for &mut T.1 parent d8ce53c commit 26e2142
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments