Lines Matching refs:Poll
7 use std::task::{Context, Poll};
73 ) -> Poll<io::Result<usize>> { in poll_write()
75 Ok(()) => Poll::Ready(Ok(buf.len())), in poll_write()
76 Err(e) => Poll::Ready(Err(e)), in poll_write()
79 fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_flush()
80 Poll::Ready((&*self.file).flush()) in poll_flush()
82 fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<io::Result<()>> { in poll_shutdown()
83 Poll::Ready(Ok(())) in poll_shutdown()
145 ) -> Poll<io::Result<()>> { in poll_read()
149 Poll::Ready(Ok(())) in poll_read()
151 Err(e) => Poll::Ready(Err(e)), in poll_read()