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,
#[error("this request was prohibited")]
GetProhibited,
#[error("no SSL session is active")]
SessionInactive,
#[error("device does not have pairing file")]
InvalidHostID,
#[error("no established connection")]
@@ -223,6 +225,7 @@ impl IdeviceError {
match e {
"GetProhibited" => Some(Self::GetProhibited),
"InvalidHostID" => Some(Self::InvalidHostID),
"SessionInactive" => Some(Self::SessionInactive),
_ => None,
}
}