pub struct NormalizedDevice {
pub platform: DevicePlatform,
pub kind: DeviceKind,
pub identifier: String,
pub name: String,
pub state: String,
pub transport: String,
}Expand description
A device entry normalized across Apple simulators and Android devices/emulators
for the cross-platform device_list tool.
Fields§
§platform: DevicePlatform§kind: DeviceKind§identifier: StringSimulator UDID (Apple) or device serial (Android).
name: String§state: String§transport: StringThe tool used to reach this device: “simctl” or “adb”.
Implementations§
Source§impl NormalizedDevice
impl NormalizedDevice
pub fn from_simulator(simulator: &Simulator) -> Self
pub fn from_android_device(device: &AndroidDevice) -> Self
Trait Implementations§
Source§impl Clone for NormalizedDevice
impl Clone for NormalizedDevice
Source§impl Debug for NormalizedDevice
impl Debug for NormalizedDevice
impl Eq for NormalizedDevice
Source§impl PartialEq for NormalizedDevice
impl PartialEq for NormalizedDevice
Source§impl Serialize for NormalizedDevice
impl Serialize for NormalizedDevice
impl StructuralPartialEq for NormalizedDevice
Auto Trait Implementations§
impl Freeze for NormalizedDevice
impl RefUnwindSafe for NormalizedDevice
impl Send for NormalizedDevice
impl Sync for NormalizedDevice
impl Unpin for NormalizedDevice
impl UnsafeUnpin for NormalizedDevice
impl UnwindSafe for NormalizedDevice
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.