[−][src]Struct mozdevice::Device
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]
&self,
command: &str,
has_output: bool,
has_length: bool
) -> Result<String>
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]
&self,
package: &str,
activity: &str,
am_start_args: &[T]
) -> Result<bool>
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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,