[][src]Trait simctl::DeviceQuery

pub trait DeviceQuery<'a>: Iterator<Item = &'a Device> {
    fn available(self) -> Available<'a, Self>;
fn by_name<'b>(self, name: &'b str) -> ByName<'a, 'b, Self>; }

Trait that makes it easy to filter an iterator over devices by availability or name.

Required methods

fn available(self) -> Available<'a, Self>

Filters this iterator down to only available devices.

fn by_name<'b>(self, name: &'b str) -> ByName<'a, 'b, Self>

Filters this iterator down to only devices with a matching name. Note that names are not necessarily unique. Trivially, they can be shared among several devices of the same type but with different runtimes (e.g. iOS 11.0 and iOS 12.0).

Loading content...

Implementors

impl<'a, I> DeviceQuery<'a> for I where
    I: Iterator<Item = &'a Device>, 
[src]

Loading content...