Struct adb_utils::file_transfer::pull::ADBPull   
source · pub struct ADBPull { /* private fields */ }Implementations§
source§impl ADBPull
 
impl ADBPull
sourcepub fn new(remote: &str, local: &str) -> Self
 
pub fn new(remote: &str, local: &str) -> Self
Examples found in repository?
examples/file_transfer/pull.rs (line 16)
9 10 11 12 13 14 15 16 17 18 19 20 21
fn main() {
    let mut manager = ADBManager::new();
    match manager.connect("192.168.0.105", 33363) {
        Ok(()) => println!("Successfully connected"),
        Err(e) => println!("Could not connect: {}", e),
    }
    let mut pull = ADBPull::new("/storage/emulated/0/DCIM/IMG_00000001.jpg", ".");
    match manager.execute_path_based(&mut pull) {
        Ok(ok) => println!("{ok}"),
        Err(err) => println!("error {err}"),
    }
}Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ADBPull
impl Send for ADBPull
impl Sync for ADBPull
impl Unpin for ADBPull
impl UnwindSafe for ADBPull
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