pub trait Device: Send {
type Platform: Platform;
// Required methods
fn launch(&self) -> impl Future<Output = Result<()>> + Send;
fn run(
&self,
artifact: Artifact,
options: RunOptions,
) -> impl Future<Output = Result<Running, FailToRun>> + Send;
fn platform(&self) -> Self::Platform;
}Expand description
Trait representing a device (e.g., emulator, simulator, physical device)
Required Associated Types§
Required Methods§
Sourcefn launch(&self) -> impl Future<Output = Result<()>> + Send
fn launch(&self) -> impl Future<Output = Result<()>> + Send
Launch the device emulator or simulator.
If the device is a physical device, this should do nothing.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.