1- # ready
1+ # async- ready
22[ ![ crates.io version] [ 1 ]] [ 2 ] [ ![ build status] [ 3 ]] [ 4 ]
33[ ![ downloads] [ 5 ]] [ 6 ] [ ![ docs.rs docs] [ 7 ]] [ 8 ]
44
@@ -17,6 +17,7 @@ __Basic usage__
1717use std :: pin :: Pin ;
1818use std :: task :: {Poll , Waker };
1919use futures :: prelude :: * ;
20+ use async_ready :: AsyncReady ;
2021use std :: io;
2122
2223struct Fut ;
@@ -28,10 +29,11 @@ impl Future for Fut {
2829 }
2930}
3031
31- impl ready :: Ready for Fut {
32+ impl AsyncReady for Fut {
3233 type Ok = ();
3334 type Err = io :: Error ;
34- fn poll_ready (& self , waker : & Waker )
35+
36+ fn poll_ready (& mut self , waker : & Waker )
3537 -> Poll <Result <Self :: Ok , Self :: Err >> {
3638 Poll :: Ready (Ok (()))
3739 }
@@ -40,7 +42,7 @@ impl ready::Ready for Fut {
4042
4143## Installation
4244``` sh
43- $ cargo add ready
45+ $ cargo add async- ready
4446```
4547
4648## Safety
@@ -60,16 +62,16 @@ None.
6062## License
6163[ MIT] ( ./LICENSE-MIT ) OR [ Apache-2.0] ( ./LICENSE-APACHE )
6264
63- [ 1 ] : https://img.shields.io/crates/v/ready.svg?style=flat-square
64- [ 2 ] : https://crates.io/crates/ready
65- [ 3 ] : https://img.shields.io/travis/yoshuawuyts/ready/master.svg?style=flat-square
66- [ 4 ] : https://travis-ci.org/yoshuawuyts/ready
67- [ 5 ] : https://img.shields.io/crates/d/ready.svg?style=flat-square
68- [ 6 ] : https://crates.io/crates/ready
65+ [ 1 ] : https://img.shields.io/crates/v/async- ready.svg?style=flat-square
66+ [ 2 ] : https://crates.io/crates/async- ready
67+ [ 3 ] : https://img.shields.io/travis/yoshuawuyts/async- ready/master.svg?style=flat-square
68+ [ 4 ] : https://travis-ci.org/yoshuawuyts/async- ready
69+ [ 5 ] : https://img.shields.io/crates/d/async- ready.svg?style=flat-square
70+ [ 6 ] : https://crates.io/crates/async- ready
6971[ 7 ] : https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square
70- [ 8 ] : https://docs.rs/ready
72+ [ 8 ] : https://docs.rs/async- ready
7173
72- [ releases ] : https://github.com/yoshuawuyts/ready/releases
73- [ contributing ] : https://github.com/yoshuawuyts/ready/blob/master.github/CONTRIBUTING.md
74- [ good-first-issue ] : https://github.com/yoshuawuyts/ready/labels/good%20first%20issue
75- [ help-wanted ] : https://github.com/yoshuawuyts/ready/labels/help%20wanted
74+ [ releases ] : https://github.com/yoshuawuyts/async- ready/releases
75+ [ contributing ] : https://github.com/yoshuawuyts/async- ready/blob/master.github/CONTRIBUTING.md
76+ [ good-first-issue ] : https://github.com/yoshuawuyts/async- ready/labels/good%20first%20issue
77+ [ help-wanted ] : https://github.com/yoshuawuyts/async- ready/labels/help%20wanted
0 commit comments