]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/hermit/pipe.rs
Auto merge of #74105 - npmccallum:naked, r=matthewjasper
[rust.git] / library / std / src / sys / hermit / pipe.rs
1 use crate::io::{self, IoSlice, IoSliceMut};
2 use crate::sys::Void;
3
4 pub struct AnonPipe(Void);
5
6 impl AnonPipe {
7     pub fn read(&self, _buf: &mut [u8]) -> io::Result<usize> {
8         match self.0 {}
9     }
10
11     pub fn read_vectored(&self, _bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> {
12         match self.0 {}
13     }
14
15     pub fn is_read_vectored(&self) -> bool {
16         match self.0 {}
17     }
18
19     pub fn write(&self, _buf: &[u8]) -> io::Result<usize> {
20         match self.0 {}
21     }
22
23     pub fn write_vectored(&self, _bufs: &[IoSlice<'_>]) -> io::Result<usize> {
24         match self.0 {}
25     }
26
27     pub fn is_write_vectored(&self) -> bool {
28         match self.0 {}
29     }
30
31     pub fn diverge(&self) -> ! {
32         match self.0 {}
33     }
34 }
35
36 pub fn read2(p1: AnonPipe, _v1: &mut Vec<u8>, _p2: AnonPipe, _v2: &mut Vec<u8>) -> io::Result<()> {
37     match p1.0 {}
38 }