File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ impl Reactor {
98
98
}
99
99
100
100
/// Deregisters an I/O event source associated with a file descriptor.
101
+ #[ cfg( feature = "unstable" ) ]
101
102
pub fn deregister_fd ( & self , source : & dyn Evented , fd : c_int ) -> io:: Result < ( ) > {
102
103
// Deregister the I/O object from the mio instance.
103
104
self . poller . deregister ( source) ?;
Original file line number Diff line number Diff line change 1
1
//! Unix-specific I/O extensions.
2
2
3
- use crate :: task:: Context ;
4
- use crate :: io;
5
3
6
4
cfg_not_docs ! {
7
5
pub use std:: os:: unix:: io:: { AsRawFd , FromRawFd , IntoRawFd , RawFd } ;
6
+
7
+ #[ cfg( feature = "unstable" ) ]
8
8
use mio:: unix:: EventedFd ;
9
+ #[ cfg( feature = "unstable" ) ]
9
10
use crate :: net:: driver:: REACTOR ;
11
+ #[ cfg( feature = "unstable" ) ]
12
+ use crate :: task:: Context ;
13
+ #[ cfg( feature = "unstable" ) ]
14
+ use crate :: io;
10
15
11
16
/// Registers an I/O handle so that the current task gets woken up when it becomes ready.
12
17
#[ cfg( feature = "unstable" ) ]
You can’t perform that action at this time.
0 commit comments