mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Add device locked error type
This commit is contained in:
@@ -423,6 +423,10 @@ pub enum IdeviceError {
|
|||||||
#[error("user denied pairing trust")]
|
#[error("user denied pairing trust")]
|
||||||
UserDeniedPairing,
|
UserDeniedPairing,
|
||||||
|
|
||||||
|
#[cfg(feature = "pair")]
|
||||||
|
#[error("device is locked")]
|
||||||
|
PasswordProtected,
|
||||||
|
|
||||||
#[cfg(feature = "misagent")]
|
#[cfg(feature = "misagent")]
|
||||||
#[error("misagent operation failed")]
|
#[error("misagent operation failed")]
|
||||||
MisagentFailure,
|
MisagentFailure,
|
||||||
@@ -510,6 +514,8 @@ impl IdeviceError {
|
|||||||
"PairingDialogResponsePending" => Some(Self::PairingDialogResponsePending),
|
"PairingDialogResponsePending" => Some(Self::PairingDialogResponsePending),
|
||||||
#[cfg(feature = "pair")]
|
#[cfg(feature = "pair")]
|
||||||
"UserDeniedPairing" => Some(Self::UserDeniedPairing),
|
"UserDeniedPairing" => Some(Self::UserDeniedPairing),
|
||||||
|
#[cfg(feature = "pair")]
|
||||||
|
"PasswordProtected" => Some(Self::PasswordProtected),
|
||||||
"InternalError" => {
|
"InternalError" => {
|
||||||
let detailed_error = context
|
let detailed_error = context
|
||||||
.get("DetailedError")
|
.get("DetailedError")
|
||||||
|
|||||||
Reference in New Issue
Block a user