pub struct ADBResult { /* private fields */ }Implementations§
source§impl ADBResult
impl ADBResult
sourcepub fn to_string(&self) -> &String
pub fn to_string(&self) -> &String
Examples found in repository?
examples/list_files.rs (line 19)
9 10 11 12 13 14 15 16 17 18 19 20 21 22
fn main() {
let mut manager = ADBManager::new();
match manager.connect("192.168.1.129", "42457") {
Ok(())=> println!("Successfully connected"),
Err(e) => println!("Could not connect: {}", e)
}
manager.cwd("/storage/emulated/0");
let mut list = ADBList::default();
match manager.shell(&mut list) {
Ok(ok) => println!("{}", ok.to_string()),
Err(err) => println!("Error: {}", err)
}
}pub fn to_vec(&self) -> Vec<String>
Auto Trait Implementations§
impl RefUnwindSafe for ADBResult
impl Send for ADBResult
impl Sync for ADBResult
impl Unpin for ADBResult
impl UnwindSafe for ADBResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more