pub enum AdbError {
Spawn(Error),
BinaryNotFound,
NonZeroExit {
subcommand: String,
serial: Option<String>,
code: i32,
stderr: String,
},
Malformed {
subcommand: String,
detail: String,
},
}Expand description
Failure variants for any adb invocation.
Variants§
Spawn(Error)
Failed to spawn adb (missing binary / PATH lookup / fork failure).
BinaryNotFound
adb was not found in PATH at all.
NonZeroExit
adb <sub> exited non-zero.
Fields
Malformed
adb <sub> exited 0 but stdout didn’t match the expected shape.
Trait Implementations§
Source§impl Error for AdbError
impl Error for AdbError
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 !RefUnwindSafe for AdbError
impl !UnwindSafe for AdbError
impl Freeze for AdbError
impl Send for AdbError
impl Sync for AdbError
impl Unpin for AdbError
impl UnsafeUnpin 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