[][src]Struct creator_simctl::list::DeviceInfo

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,
}

Information about a device.

Fields

runtime_identifier: String

Note: 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: PathBuf

Contains the path where application data is stored.

log_path: PathBuf

Contains the path where logs are written to.

udid: String

Contains a unique identifier for this device.

is_available: bool

Indicates if this device is available. Also see Runtime::is_available.

device_type_identifier: String

This corresponds to DeviceType::identifier. This is missing for devices whose device type has since been removed from Xcode.

state: DeviceState

Contains the state of this device.

name: String

Contains the name of this device.

Trait Implementations

impl Clone for DeviceInfo[src]

impl Debug for DeviceInfo[src]

impl<'de> Deserialize<'de> for DeviceInfo[src]

impl Eq for DeviceInfo[src]

impl PartialEq<DeviceInfo> for DeviceInfo[src]

impl StructuralEq for DeviceInfo[src]

impl StructuralPartialEq for DeviceInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.