pub struct DeviceType {
pub min_runtime_version: usize,
pub max_runtime_version: usize,
pub bundle_path: PathBuf,
pub name: String,
pub identifier: String,
pub product_family: String,
}Expand description
Information about a device type.
Fields§
§min_runtime_version: usizeContains the minimum runtime version that this device type supports.
This is relevant for devices that are newer than the oldest runtime that
has been registered with simctl.
max_runtime_version: usizeContains the maximum runtime version that this device type supports.
This is relevant for devices that have been deprecated before the newest
runtime that has been registered with simctl.
bundle_path: PathBufContains a path to the bundle of this device type. This is usually not relevant to end-users.
name: StringContains a human-readable name for this device type.
identifier: StringContains a unique identifier for this device type.
product_family: StringContains a machine-readable name for the product family of this device type.
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceType
impl Debug for DeviceType
Source§impl<'de> Deserialize<'de> for DeviceType
impl<'de> Deserialize<'de> for DeviceType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceType
impl PartialEq for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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