Trait adb_rust::cmd::ADBCmdTrait

source ·
pub trait ADBCmdTrait {
    // Required methods
    fn new(cmd: String, is_shell: bool) -> Self;
    fn create_cmd(self) -> Command;
    async fn run_async<F>(&self, args: Vec<String>, fnc: F)
       where F: FnMut(String) -> String + 'static;
    fn run(&self, args: Vec<String>) -> Result<String, String>;
    fn get_var_arg(self, args: Vec<String>) -> impl Future<Output = bool>;
    fn get_file_path(path: &str) -> Result<String, String>;
}

Required Methods§

source

fn new(cmd: String, is_shell: bool) -> Self

source

fn create_cmd(self) -> Command

source

async fn run_async<F>(&self, args: Vec<String>, fnc: F)
where F: FnMut(String) -> String + 'static,

source

fn run(&self, args: Vec<String>) -> Result<String, String>

source

fn get_var_arg(self, args: Vec<String>) -> impl Future<Output = bool>

source

fn get_file_path(path: &str) -> Result<String, String>

Object Safety§

This trait is not object safe.

Implementors§