Lines Matching refs:u8

51     stdin_rx: mpsc::Receiver<u8>,
52 stdin_tx: mpsc::Sender<u8>,
54 output_rx: mpsc::Receiver<u8>,
55 output_tx: mpsc::Sender<u8>,
82 let (stdin_tx, stdin_rx) = mpsc::channel::<u8>(Self::STDIN_BUF_SIZE); in new()
83 let (output_tx, output_rx) = mpsc::channel::<u8>(Self::OUTPUT_BUF_SIZE); in new()
103 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input() argument
120 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output() argument
131 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout() argument
142 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr() argument
153 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin() argument
157 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.stdin_rx.try_recv_ref(); in read_stdin()
187 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin() argument
190 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.stdin_tx.try_send_ref(); in write_stdin()
219 fn read_output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_output() argument
222 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.output_rx.try_recv_ref(); in read_output()
252 fn write_output(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_output() argument
255 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.output_tx.try_send_ref(); in write_output()