pub enum AdbError {
NotFound(String),
CommandFailed(String),
Timeout,
DeviceNotFound(String),
}Expand description
Errors produced by ADB operations.
Variants§
NotFound(String)
The adb binary could not be found or spawned.
CommandFailed(String)
An ADB command was launched but exited with a non-zero status.
Timeout
An ADB command timed out.
DeviceNotFound(String)
No device (or the requested device) could be found.
Trait Implementations§
Source§impl Error for AdbError
impl Error for AdbError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AdbError
impl RefUnwindSafe for AdbError
impl Send for AdbError
impl Sync for AdbError
impl Unpin for AdbError
impl UnsafeUnpin for AdbError
impl UnwindSafe for AdbError
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