Lines Matching refs:Result
105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input()
122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output()
133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout()
144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr()
155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin()
159 let val: Result<mpsc::RecvRef<u8>, TryRecvError> = self.stdin_rx.try_recv_ref(); in read_stdin()
199 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin()
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()
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()
267 let r: Result<mpsc::SendRef<u8>, TrySendError> = self.output_tx.try_send_ref(); in write_output()