From 4b9ac006342d3c28d0d2d9894e1e78b1bfe97ef8 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sat, 1 Feb 2025 17:11:10 -0700 Subject: [PATCH] Add SessionInactive error --- idevice/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index 7949bd6..b991e4c 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -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, } }