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§
Sourcefn device(&self, udid: &str) -> Result<Simulator, String>
fn device(&self, udid: &str) -> Result<Simulator, String>
The device with UDID udid, as it is now.
fn runtimes(&self) -> Result<Vec<Runtime>, String>
Sourcefn create(
&self,
name: &str,
device_type: &str,
runtime: &Runtime,
) -> Result<Simulator, String>
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.
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".