File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use crate::io::prelude::*;
7
7
8
8
use crate :: fmt;
9
9
use crate :: io:: { self , IoSlice , IoSliceMut } ;
10
+ use crate :: iter:: FusedIterator ;
10
11
use crate :: net:: { Shutdown , SocketAddr , ToSocketAddrs } ;
11
12
use crate :: sys_common:: net as net_imp;
12
13
use crate :: sys_common:: { AsInner , FromInner , IntoInner } ;
@@ -1009,6 +1010,9 @@ impl<'a> Iterator for Incoming<'a> {
1009
1010
}
1010
1011
}
1011
1012
1013
+ #[ stable( feature = "tcp_listener_incoming_fused_iterator" , since = "1.63.0" ) ]
1014
+ impl FusedIterator for Incoming < ' _ > { }
1015
+
1012
1016
#[ unstable( feature = "tcplistener_into_incoming" , issue = "88339" ) ]
1013
1017
impl Iterator for IntoIncoming {
1014
1018
type Item = io:: Result < TcpStream > ;
@@ -1017,6 +1021,9 @@ impl Iterator for IntoIncoming {
1017
1021
}
1018
1022
}
1019
1023
1024
+ #[ unstable( feature = "tcplistener_into_incoming" , issue = "88339" ) ]
1025
+ impl FusedIterator for IntoIncoming { }
1026
+
1020
1027
impl AsInner < net_imp:: TcpListener > for TcpListener {
1021
1028
fn as_inner ( & self ) -> & net_imp:: TcpListener {
1022
1029
& self . 0
You can’t perform that action at this time.
0 commit comments