Lines Matching refs:io
29 use std::io::{self, Error, ErrorKind, Write};
36 use ylong_runtime::io::AsyncReadExt;
37 use ylong_runtime::io::AsyncWriteExt;
57 pub async fn run_client_mode(parsed_cmd: ParsedCommand) -> io::Result<()> {
92 pub async fn new(parsed_cmd: ParsedCommand) -> io::Result<Self> {
115 async fn execute_command(&mut self) -> io::Result<()> {
152 pub async fn handshake(&mut self) -> io::Result<()> {
182 async fn recv(&mut self) -> io::Result<Vec<u8>> {
187 async fn unity_task(&mut self) -> io::Result<()> {
192 async fn wait_task(&mut self) -> io::Result<()> {
197 async fn unity_root_run_task(&mut self) -> io::Result<()> {
204 async fn jdwp_task(&mut self) -> io::Result<()> {
211 async fn shell_task(&mut self) -> io::Result<()> {
256 async fn shell_task(&mut self) -> io::Result<()> {
283 let mut stdin = ylong_runtime::io::stdin();
296 async fn forward_task(&mut self) -> io::Result<()> {
319 async fn general_task(&mut self) -> io::Result<()> {
334 async fn bug_report_task(&mut self) -> io::Result<()> {
346 async fn file_send_task(&mut self) -> io::Result<()> {
361 async fn loop_recv(&mut self) -> io::Result<()> {
385 async fn loop_recv_waitfor(&mut self) -> io::Result<()> {
419 async fn app_install_task(&mut self) -> io::Result<()> {
443 Err(e) => return Err(io::Error::new(io::ErrorKind::Other, format!("{e}"))),
453 async fn app_uninstall_task(&mut self) -> io::Result<()> {
471 return Err(io::Error::new(io::ErrorKind::Other, format!("{e}")));
482 async fn check_server_task(&mut self) -> io::Result<()> {
499 return Err(Error::new(io::ErrorKind::Other, "recv failed"));
505 return Err(Error::new(io::ErrorKind::Other, "HdcCommand::try_from failed"));
508 return Err(Error::new(io::ErrorKind::Other, "recv cmd error"));
513 return Err(Error::new(io::ErrorKind::Other, format!("from_utf8 failed, {err}")));
544 fn setup_raw_terminal() -> io::Result<libc::termios> {
569 Err(io::Error::last_os_error())
573 fn recover_terminal(termios: libc::termios) -> io::Result<()> {
585 Err(io::Error::last_os_error())