Udp socket readiness methods (#522)

This commit is contained in:
Andrew Cann
2018-08-07 19:41:27 -07:00
committed by Carl Lerche
parent e964c4136c
commit fdb2f61357
2 changed files with 38 additions and 4 deletions
+1 -4
View File
@@ -159,10 +159,7 @@ impl TcpStream {
///
/// # Panics
///
/// This function panics if:
///
/// * `ready` contains bits besides `writable` and `hup`.
/// * called from outside of a task context.
/// This function panics if called from outside of a task context.
pub fn poll_write_ready(&self) -> Poll<mio::Ready, io::Error> {
self.io.poll_write_ready()
}