pub enum AdbError {
Show 15 variants
Io(Error),
ServerFailed(String),
Protocol(String),
NoDevice,
DeviceNotOnline(String),
DeviceNotFound(String),
ShellError(String),
InstallFailed(String),
UninstallFailed(String),
SyncError(String),
RootFailed(String),
Utf8(FromUtf8Error),
Parse(String),
ConnectionRefused,
Timeout(String),
}Expand description
Errors from ADB operations.
Variants§
Io(Error)
ServerFailed(String)
Protocol(String)
NoDevice
DeviceNotOnline(String)
DeviceNotFound(String)
ShellError(String)
InstallFailed(String)
UninstallFailed(String)
SyncError(String)
RootFailed(String)
Utf8(FromUtf8Error)
Parse(String)
ConnectionRefused
Timeout(String)
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()
Source§impl From<FromUtf8Error> for AdbError
impl From<FromUtf8Error> for AdbError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
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