File tree 1 file changed +32
-1
lines changed
library/std/src/sys/pal/unsupported
1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
- use crate :: io;
1
+ use crate :: io:: { self , BorrowedCursor , IoSlice , IoSliceMut } ;
2
2
3
3
pub struct Stdin ;
4
4
pub struct Stdout ;
@@ -14,6 +14,19 @@ impl io::Read for Stdin {
14
14
fn read ( & mut self , _buf : & mut [ u8 ] ) -> io:: Result < usize > {
15
15
Ok ( 0 )
16
16
}
17
+
18
+ fn read_buf ( & mut self , _buf : BorrowedCursor < ' _ > ) -> io:: Result < ( ) > {
19
+ Ok ( ( ) )
20
+ }
21
+
22
+ fn read_vectored ( & mut self , _bufs : & mut [ IoSliceMut < ' _ > ] ) -> io:: Result < usize > {
23
+ Ok ( 0 )
24
+ }
25
+
26
+ #[ inline]
27
+ fn is_read_vectored ( & self ) -> bool {
28
+ true
29
+ }
17
30
}
18
31
19
32
impl Stdout {
@@ -30,6 +43,15 @@ impl io::Write for Stdout {
30
43
fn flush ( & mut self ) -> io:: Result < ( ) > {
31
44
Ok ( ( ) )
32
45
}
46
+
47
+ fn write_vectored ( & mut self , _bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
48
+ Ok ( 0 )
49
+ }
50
+
51
+ #[ inline]
52
+ fn is_write_vectored ( & self ) -> bool {
53
+ true
54
+ }
33
55
}
34
56
35
57
impl Stderr {
@@ -46,6 +68,15 @@ impl io::Write for Stderr {
46
68
fn flush ( & mut self ) -> io:: Result < ( ) > {
47
69
Ok ( ( ) )
48
70
}
71
+
72
+ fn write_vectored ( & mut self , _bufs : & [ IoSlice < ' _ > ] ) -> io:: Result < usize > {
73
+ Ok ( 0 )
74
+ }
75
+
76
+ #[ inline]
77
+ fn is_write_vectored ( & self ) -> bool {
78
+ true
79
+ }
49
80
}
50
81
51
82
pub const STDIN_BUF_SIZE : usize = 0 ;
You can’t perform that action at this time.
0 commit comments