Skip to main content

Service

Trait Service 

Source
pub trait Service {
    // Required methods
    fn device(&self, udid: &str) -> Result<Simulator, String>;
    fn names(&self) -> Result<Vec<String>, String>;
    fn runtimes(&self) -> Result<Vec<Runtime>, String>;
    fn create(
        &self,
        name: &str,
        device_type: &str,
        runtime: &Runtime,
    ) -> Result<Simulator, String>;
    fn delete(&self, udid: &str) -> Result<(), String>;
}
Expand description

The simulator service, on one device set.

Required Methods§

Source

fn device(&self, udid: &str) -> Result<Simulator, String>

The device with UDID udid, as it is now.

Source

fn names(&self) -> Result<Vec<String>, String>

Every device’s name in the set.

Source

fn runtimes(&self) -> Result<Vec<Runtime>, String>

Source

fn create( &self, name: &str, device_type: &str, runtime: &Runtime, ) -> Result<Simulator, String>

Creates a device (shut down, never booted) of device_type (an identifier) on runtime: the installed runtime with its identifier and build, never another build of it.

Source

fn delete(&self, udid: &str) -> Result<(), String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§