Add SessionInactive error

This commit is contained in:
Jackson Coxson
2025-02-01 17:11:10 -07:00
parent 1b5b4b1be0
commit 4b9ac00634

View File

@@ -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,
} }
} }