pub struct RegisteredSim {
pub device_name: String,
pub udid: String,
pub runtime: String,
pub device_type: String,
pub locale: Option<String>,
pub runner_port: Option<u16>,
}Expand description
One registered simulator (a row of .smix/sims.json).
Fields§
§device_name: StringHuman-chosen device name (also usable as an alias).
udid: StringCoreSimulator UDID.
runtime: StringRuntime identifier.
device_type: StringDevice type identifier.
locale: Option<String>v6.10 c2 — desired BCP 47 locale tag (e.g. "en-US", "ja-JP").
When set, smix sim boot enforces it via
defaults write -g AppleLanguages + AppleLocale and reboots the
sim if the current locale differs. Closes insight gol-611 §3
(sim-managed sims default to zh-Hans → SpringBoard / app text
mismatches English yaml matchers). None (field absent) =
honor whatever locale the sim boots with, no enforcement.
runner_port: Option<u16>v0.2.5 §Phase C — desired runner port (SmixRunner FlyingFox
HTTP port). When set, smix runner up <alias> binds the runner
to this port instead of the CLI default 22087. Two sims can
then run their own runner in parallel without port collision
(e.g. sim-a.runnerPort = 22087 + sim-b.runnerPort = 22088).
Falls through to --runner-port flag or SMIX_RUNNER_PORT env
when absent. See insight-roadmap.md §I.
Trait Implementations§
Source§impl Clone for RegisteredSim
impl Clone for RegisteredSim
Source§fn clone(&self) -> RegisteredSim
fn clone(&self) -> RegisteredSim
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more