[][src]Struct mozdevice::Device

pub struct Device {
    pub host: Host,
    pub serial: DeviceSerial,
}

Represents an ADB device.

Fields

host: Host

ADB host that controls this device.

serial: DeviceSerial

Serial number uniquely identifying this ADB device.

Methods

impl Device[src]

pub fn execute_host_command(
    &self,
    command: &str,
    has_output: bool,
    has_length: bool
) -> Result<String>
[src]

pub fn execute_host_shell_command(&self, shell_command: &str) -> Result<String>[src]

pub fn is_app_installed(&self, package: &str) -> Result<bool>[src]

pub fn clear_app_data(&self, package: &str) -> Result<bool>[src]

pub fn launch<T: AsRef<str>>(
    &self,
    package: &str,
    activity: &str,
    am_start_args: &[T]
) -> Result<bool>
[src]

pub fn force_stop(&self, package: &str) -> Result<()>[src]

pub fn forward_port(&self, local: u16, remote: u16) -> Result<u16>[src]

pub fn kill_forward_port(&self, local: u16) -> Result<()>[src]

pub fn kill_forward_all_ports(&self) -> Result<()>[src]

pub fn reverse_port(&self, remote: u16, local: u16) -> Result<u16>[src]

pub fn kill_reverse_port(&self, remote: u16) -> Result<()>[src]

pub fn kill_reverse_all_ports(&self) -> Result<()>[src]

pub fn push(&self, buffer: &mut dyn Read, dest: &Path, mode: u32) -> Result<()>[src]

pub fn push_dir(&self, source: &Path, dest_dir: &Path, mode: u32) -> Result<()>[src]

Trait Implementations

impl Debug for Device[src]

Auto Trait Implementations

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

impl RefUnwindSafe for Device

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,