#[non_exhaustive]#[repr(i32)]pub enum IdeviceError {
Show 61 variants
Socket(Error),
PemParseFailed(Error),
Rustls(Error),
TlsBuilderFailed(VerifierBuilderError),
Plist(Error),
Utf8(FromUtf8Error),
UnexpectedResponse = -7,
GetProhibited = -8,
SessionInactive = -9,
InvalidHostID = -10,
NoEstablishedConnection = -11,
HeartbeatSleepyTime = -12,
HeartbeatTimeout = -13,
NotFound = -14,
ServiceNotFound = -15,
CdtunnelPacketTooShort = -16,
CdtunnelPacketInvalidMagic = -17,
PacketSizeMismatch = -18,
Json(Error),
DeviceNotFound = -20,
DeviceLocked = -21,
UsbConnectionRefused = -22,
UsbBadCommand = -23,
UsbBadDevice = -24,
UsbBadVersion = -25,
BadBuildManifest = -26,
ImageNotMounted = -27,
PairingDialogResponsePending = -28,
UserDeniedPairing = -29,
PasswordProtected = -30,
MisagentFailure = -31,
InstallationProxyOperationFailed(String),
Afc(AfcError),
UnknownAfcOpcode = -34,
InvalidAfcMagic = -35,
AfcMissingAttribute = -36,
CrashReportMoverBadResponse(Vec<u8>),
Reqwest(Error),
InternalError(String),
UnknownFrame(u8),
UnknownHttpSetting(u16),
UninitializedStreamId = -42,
UnknownXpcType(u32),
MalformedXpc = -44,
InvalidXpcMagic = -45,
UnexpectedXpcVersion = -46,
InvalidCString = -47,
HttpStreamReset = -48,
HttpGoAway(String),
NsKeyedArchiveError(ConverterError),
UnknownAuxValueType(u32),
UnknownChannel(u32),
AddrParseError(AddrParseError),
DisableMemoryLimitFailed = -54,
NotEnoughBytes(usize, usize),
Utf8Error = -56,
InvalidArgument = -57,
UnknownErrorType(String),
FfiInvalidArg = -60,
FfiInvalidString = -61,
FfiBufferTooSmall(usize, usize),
}Expand description
Comprehensive error type for all device communication failures
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Socket(Error)
PemParseFailed(Error)
Rustls(Error)
TlsBuilderFailed(VerifierBuilderError)
Plist(Error)
Utf8(FromUtf8Error)
UnexpectedResponse = -7
GetProhibited = -8
SessionInactive = -9
InvalidHostID = -10
NoEstablishedConnection = -11
HeartbeatSleepyTime = -12
HeartbeatTimeout = -13
NotFound = -14
ServiceNotFound = -15
CdtunnelPacketTooShort = -16
CdtunnelPacketInvalidMagic = -17
PacketSizeMismatch = -18
Json(Error)
DeviceNotFound = -20
DeviceLocked = -21
UsbConnectionRefused = -22
UsbBadCommand = -23
UsbBadDevice = -24
UsbBadVersion = -25
BadBuildManifest = -26
ImageNotMounted = -27
PairingDialogResponsePending = -28
UserDeniedPairing = -29
PasswordProtected = -30
MisagentFailure = -31
InstallationProxyOperationFailed(String)
Afc(AfcError)
UnknownAfcOpcode = -34
InvalidAfcMagic = -35
AfcMissingAttribute = -36
CrashReportMoverBadResponse(Vec<u8>)
Reqwest(Error)
InternalError(String)
UnknownFrame(u8)
UnknownHttpSetting(u16)
UninitializedStreamId = -42
UnknownXpcType(u32)
MalformedXpc = -44
InvalidXpcMagic = -45
UnexpectedXpcVersion = -46
InvalidCString = -47
HttpStreamReset = -48
HttpGoAway(String)
NsKeyedArchiveError(ConverterError)
UnknownAuxValueType(u32)
UnknownChannel(u32)
AddrParseError(AddrParseError)
DisableMemoryLimitFailed = -54
NotEnoughBytes(usize, usize)
Utf8Error = -56
InvalidArgument = -57
UnknownErrorType(String)
FfiInvalidArg = -60
FfiInvalidString = -61
FfiBufferTooSmall(usize, usize)
Implementations§
Trait Implementations§
Source§impl Debug for IdeviceError
impl Debug for IdeviceError
Source§impl Display for IdeviceError
impl Display for IdeviceError
Source§impl Error for IdeviceError
impl Error for IdeviceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AddrParseError> for IdeviceError
impl From<AddrParseError> for IdeviceError
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<AfcError> for IdeviceError
impl From<AfcError> for IdeviceError
Source§impl From<ConverterError> for IdeviceError
impl From<ConverterError> for IdeviceError
Source§fn from(source: ConverterError) -> Self
fn from(source: ConverterError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<Error> for IdeviceError
impl From<Error> for IdeviceError
Source§impl From<FromUtf8Error> for IdeviceError
impl From<FromUtf8Error> for IdeviceError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<VerifierBuilderError> for IdeviceError
impl From<VerifierBuilderError> for IdeviceError
Source§fn from(source: VerifierBuilderError) -> Self
fn from(source: VerifierBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IdeviceError
impl !RefUnwindSafe for IdeviceError
impl Send for IdeviceError
impl Sync for IdeviceError
impl Unpin for IdeviceError
impl !UnwindSafe for IdeviceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.