ios-core 0.1.7

High-level device API, pairing transport, and discovery for iOS devices
Documentation
use crate::lockdown::pair_record::PairRecordError;

/// Aggregated error type for ios-core operations.
#[derive(Debug, thiserror::Error)]
pub enum CoreError {
    #[error("IO error: {0}")]
    Io(#[from] std::io::Error),
    #[error("usbmuxd error: {0}")]
    Mux(#[from] crate::mux::MuxError),
    #[error("lockdown error: {0}")]
    Lockdown(#[from] crate::lockdown::LockdownError),
    #[error("pair record error: {0}")]
    PairRecord(#[from] PairRecordError),
    #[error("tunnel error: {0}")]
    Tunnel(#[from] crate::tunnel::TunnelError),
    #[error("XPC error: {0}")]
    Xpc(#[from] crate::xpc::XpcError),
    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),
    #[error("protocol error: {0}")]
    Protocol(String),
    #[error("device not found: {0}")]
    DeviceNotFound(String),
    #[error("operation not supported: {0}")]
    Unsupported(String),
    #[error("{0}")]
    Other(String),
}