Lines Matching refs:u8

53     stdin_rx: mpsc::Receiver<u8>,
54 stdin_tx: mpsc::Sender<u8>,
56 output_rx: mpsc::Receiver<u8>,
57 output_tx: mpsc::Sender<u8>,
84 let (stdin_tx, stdin_rx) = mpsc::channel::<u8>(Self::STDIN_BUF_SIZE); in new()
85 let (output_tx, output_rx) = mpsc::channel::<u8>(Self::OUTPUT_BUF_SIZE); in new()
105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input() argument
122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output() argument
133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout() argument
144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr() argument
155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin() argument
159 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.stdin_rx.try_recv_ref(); in read_stdin()
185 fn stdin_should_return(&self, c: u8) -> bool { in stdin_should_return()
199 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin() argument
202 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.stdin_tx.try_send_ref(); in write_stdin()
231 fn read_output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_output() argument
234 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.output_rx.try_recv_ref(); in read_output()
264 fn write_output(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_output() argument
267 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.output_tx.try_send_ref(); in write_output()