There was an error while loading. Please reload this page.
1 parent 3f4a56a commit 3ce6881Copy full SHA for 3ce6881
src/net/tcp.rs
@@ -6,6 +6,7 @@ use std::task::{Context, Poll};
6
7
use cfg_if::cfg_if;
8
use futures::{prelude::*, ready};
9
+use futures::stream::FusedStream;
10
11
use crate::net::driver::IoHandle;
12
@@ -667,6 +668,10 @@ impl<'a> Stream for Incoming<'a> {
667
668
}
669
670
671
+impl<'a> FusedStream for Incoming<'a> {
672
+ fn is_terminated(&self) -> bool { false }
673
+}
674
+
675
impl From<net::TcpStream> for TcpStream {
676
/// Converts a `std::net::TcpStream` into its asynchronous equivalent.
677
fn from(stream: net::TcpStream) -> TcpStream {
0 commit comments