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§
fn new(cmd: String, is_shell: bool) -> Self
fn create_cmd(self) -> Command
async fn run_async<F>(&self, args: Vec<String>, fnc: F)
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>
Object Safety§
This trait is not object safe.