pub enum AdbError {
IOError(Error),
Utf8StringError(Utf8Error),
ParseIntError(ParseIntError),
FailedResponseStatus(String),
UnknownResponseStatus(String),
AddrParseError(AddrParseError),
}Expand description
Error type for adb-client-tokio
Variants§
IOError(Error)
Indicates that an error occurred with I/O.
Utf8StringError(Utf8Error)
Indicates that an error occurred during UTF-8 parsing.
ParseIntError(ParseIntError)
Indicates that an error occurred during integer parsing.
FailedResponseStatus(String)
Indicates that an error occurred with the ADB server.
UnknownResponseStatus(String)
Indicates that an unknown response status was received.
AddrParseError(AddrParseError)
Indicates that an addr couldn;’t be parsed
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<AddrParseError> for AdbError
impl From<AddrParseError> for AdbError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for AdbError
impl From<ParseIntError> for AdbError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> 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 !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