[][src]Enum polyhorn_cli::test::Device

pub enum Device {
    IOS {
        device: Device,
        runtime: Runtime,
        device_type: DeviceType,
    },
}

Platform-independent wrapper around the platform-dependent device types. Note: on iOS, UI automation only works in the iOS Simulator, not on physical devices. As such, it's not necessary to make that distinction here.

Variants

IOS

Wrapper for iOS simulators.

Fields of IOS

device: Device

Wrapper around the iOS simulator device itself.

runtime: Runtime

Wrapper around the iOS runtime (i.e. version of iOS) that runs on the simulated device.

device_type: DeviceType

Device type (i.e. hardware) that is simulated by the device.

Implementations

impl Device[src]

pub fn open_url(&self, url: &str) -> Result<(), Error>[src]

Opens an URL on this device.

pub fn screenshot(&self) -> Result<Vec<u8>, Error>[src]

Takes a screenshot on this device and returns the PNG-encoded result.

pub fn metadata(&self) -> Metadata[src]

Summarizes this device into snapshot metadata.

Trait Implementations

impl Clone for Device[src]

impl Debug for Device[src]

Auto Trait Implementations

impl RefUnwindSafe for Device

impl Send for Device

impl Sync for Device

impl Unpin for Device

impl UnwindSafe for Device

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,