(&self)
| 258 | } |
| 259 | if n < tmp.len() { |
| 260 | return Ok(()); |
| 261 | } |
| 262 | } |
| 263 | Err(err) if err.kind() == io::ErrorKind::WouldBlock => return Ok(()), |
| 264 | Err(err) => return Err(NetError::from_io(NetErrorKind::Receive, err)), |
| 265 | } |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | /// Try to write all queued bytes without blocking. |
| 270 | /// |
| 271 | /// Returns `true` when the queue is empty. |
no test coverage detected