mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Add SessionInactive error
This commit is contained in:
@@ -181,6 +181,8 @@ pub enum IdeviceError {
|
|||||||
UnexpectedResponse,
|
UnexpectedResponse,
|
||||||
#[error("this request was prohibited")]
|
#[error("this request was prohibited")]
|
||||||
GetProhibited,
|
GetProhibited,
|
||||||
|
#[error("no SSL session is active")]
|
||||||
|
SessionInactive,
|
||||||
#[error("device does not have pairing file")]
|
#[error("device does not have pairing file")]
|
||||||
InvalidHostID,
|
InvalidHostID,
|
||||||
#[error("no established connection")]
|
#[error("no established connection")]
|
||||||
@@ -223,6 +225,7 @@ impl IdeviceError {
|
|||||||
match e {
|
match e {
|
||||||
"GetProhibited" => Some(Self::GetProhibited),
|
"GetProhibited" => Some(Self::GetProhibited),
|
||||||
"InvalidHostID" => Some(Self::InvalidHostID),
|
"InvalidHostID" => Some(Self::InvalidHostID),
|
||||||
|
"SessionInactive" => Some(Self::SessionInactive),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user