pub struct DeviceInfo {
pub runtime_identifier: String,
pub availability_error: Option<String>,
pub data_path: PathBuf,
pub log_path: PathBuf,
pub udid: String,
pub is_available: bool,
pub device_type_identifier: String,
pub state: DeviceState,
pub name: String,
}Expand description
Information about a device.
Fields§
§runtime_identifier: StringNote: this field is not directly present in JSON. Instead, the JSON representation is a hashmap of runtime IDs (keys) and devices (values) that we later connect during deserialization.
availability_error: Option<String>If this device is not available (see DeviceInfo::is_available), this
will contain a (slightly) more detailed explanation for its
unavailability.
data_path: PathBufContains the path where application data is stored.
log_path: PathBufContains the path where logs are written to.
udid: StringContains a unique identifier for this device.
is_available: boolIndicates if this device is available. Also see
Runtime::is_available.
device_type_identifier: StringThis corresponds to DeviceType::identifier. This is missing for
devices whose device type has since been removed from Xcode.
state: DeviceStateContains the state of this device.
name: StringContains the name of this device.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more