@@ -96,18 +96,18 @@ mod if_std {
9696
9797 /// Attempt to read from the `AsyncRead` into `buf`.
9898 ///
99- /// On success, returns `Ok(Async ::Ready(num_bytes_read))`.
99+ /// On success, returns `Ok(Poll ::Ready(num_bytes_read))`.
100100 ///
101101 /// If no data is available for reading, the method returns
102- /// `Ok(Async ::Pending)` and arranges for the current task (via
102+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
103103 /// `waker.wake()`) to receive a notification when the object becomes
104104 /// readable or is closed.
105105 ///
106106 /// # Implementation
107107 ///
108108 /// This function may not return errors of kind `WouldBlock` or
109109 /// `Interrupted`. Implementations must convert `WouldBlock` into
110- /// `Async ::Pending` and either internally retry or convert
110+ /// `Poll ::Pending` and either internally retry or convert
111111 /// `Interrupted` into another error kind.
112112 fn poll_read ( self : Pin < & mut Self > , waker : & Waker , buf : & mut [ u8 ] )
113113 -> Poll < Result < usize > > ;
@@ -118,10 +118,10 @@ mod if_std {
118118 /// This method is similar to `poll_read`, but allows data to be read
119119 /// into multiple buffers using a single operation.
120120 ///
121- /// On success, returns `Ok(Async ::Ready(num_bytes_read))`.
121+ /// On success, returns `Ok(Poll ::Ready(num_bytes_read))`.
122122 ///
123123 /// If no data is available for reading, the method returns
124- /// `Ok(Async ::Pending)` and arranges for the current task (via
124+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
125125 /// `waker.wake()`) to receive a notification when the object becomes
126126 /// readable or is closed.
127127 /// By default, this method delegates to using `poll_read` on the first
@@ -132,7 +132,7 @@ mod if_std {
132132 ///
133133 /// This function may not return errors of kind `WouldBlock` or
134134 /// `Interrupted`. Implementations must convert `WouldBlock` into
135- /// `Async ::Pending` and either internally retry or convert
135+ /// `Poll ::Pending` and either internally retry or convert
136136 /// `Interrupted` into another error kind.
137137 fn poll_vectored_read ( self : Pin < & mut Self > , waker : & Waker , vec : & mut [ & mut IoVec ] )
138138 -> Poll < Result < usize > >
@@ -156,18 +156,18 @@ mod if_std {
156156 pub trait AsyncWrite {
157157 /// Attempt to write bytes from `buf` into the object.
158158 ///
159- /// On success, returns `Ok(Async ::Ready(num_bytes_written))`.
159+ /// On success, returns `Ok(Poll ::Ready(num_bytes_written))`.
160160 ///
161161 /// If the object is not ready for writing, the method returns
162- /// `Ok(Async ::Pending)` and arranges for the current task (via
162+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
163163 /// `waker.wake()`) to receive a notification when the object becomes
164164 /// readable or is closed.
165165 ///
166166 /// # Implementation
167167 ///
168168 /// This function may not return errors of kind `WouldBlock` or
169169 /// `Interrupted`. Implementations must convert `WouldBlock` into
170- /// `Async ::Pending` and either internally retry or convert
170+ /// `Poll ::Pending` and either internally retry or convert
171171 /// `Interrupted` into another error kind.
172172 fn poll_write ( self : Pin < & mut Self > , waker : & Waker , buf : & [ u8 ] )
173173 -> Poll < Result < usize > > ;
@@ -178,10 +178,10 @@ mod if_std {
178178 /// This method is similar to `poll_write`, but allows data from multiple buffers to be written
179179 /// using a single operation.
180180 ///
181- /// On success, returns `Ok(Async ::Ready(num_bytes_written))`.
181+ /// On success, returns `Ok(Poll ::Ready(num_bytes_written))`.
182182 ///
183183 /// If the object is not ready for writing, the method returns
184- /// `Ok(Async ::Pending)` and arranges for the current task (via
184+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
185185 /// `waker.wake()`) to receive a notification when the object becomes
186186 /// readable or is closed.
187187 ///
@@ -193,7 +193,7 @@ mod if_std {
193193 ///
194194 /// This function may not return errors of kind `WouldBlock` or
195195 /// `Interrupted`. Implementations must convert `WouldBlock` into
196- /// `Async ::Pending` and either internally retry or convert
196+ /// `Poll ::Pending` and either internally retry or convert
197197 /// `Interrupted` into another error kind.
198198 fn poll_vectored_write ( self : Pin < & mut Self > , waker : & Waker , vec : & [ & IoVec ] )
199199 -> Poll < Result < usize > >
@@ -209,35 +209,35 @@ mod if_std {
209209 /// Attempt to flush the object, ensuring that any buffered data reach
210210 /// their destination.
211211 ///
212- /// On success, returns `Ok(Async ::Ready(()))`.
212+ /// On success, returns `Ok(Poll ::Ready(()))`.
213213 ///
214214 /// If flushing cannot immediately complete, this method returns
215- /// `Ok(Async ::Pending)` and arranges for the current task (via
215+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
216216 /// `waker.wake()`) to receive a notification when the object can make
217217 /// progress towards flushing.
218218 ///
219219 /// # Implementation
220220 ///
221221 /// This function may not return errors of kind `WouldBlock` or
222222 /// `Interrupted`. Implementations must convert `WouldBlock` into
223- /// `Async ::Pending` and either internally retry or convert
223+ /// `Poll ::Pending` and either internally retry or convert
224224 /// `Interrupted` into another error kind.
225225 fn poll_flush ( self : Pin < & mut Self > , waker : & Waker ) -> Poll < Result < ( ) > > ;
226226
227227 /// Attempt to close the object.
228228 ///
229- /// On success, returns `Ok(Async ::Ready(()))`.
229+ /// On success, returns `Ok(Poll ::Ready(()))`.
230230 ///
231231 /// If closing cannot immediately complete, this function returns
232- /// `Ok(Async ::Pending)` and arranges for the current task (via
232+ /// `Ok(Poll ::Pending)` and arranges for the current task (via
233233 /// `waker.wake()`) to receive a notification when the object can make
234234 /// progress towards closing.
235235 ///
236236 /// # Implementation
237237 ///
238238 /// This function may not return errors of kind `WouldBlock` or
239239 /// `Interrupted`. Implementations must convert `WouldBlock` into
240- /// `Async ::Pending` and either internally retry or convert
240+ /// `Poll ::Pending` and either internally retry or convert
241241 /// `Interrupted` into another error kind.
242242 fn poll_close ( self : Pin < & mut Self > , waker : & Waker ) -> Poll < Result < ( ) > > ;
243243 }
0 commit comments