MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / list_simulators

Method list_simulators

packages/server/src/native/bridge.rs:296–305  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

294
295impl NativeBridge {
296 pub fn list_simulators(&self) -> Result<Vec<Simulator>, AppError> {
297 let json = unsafe {
298 let mut error = ptr::null_mut();
299 let raw = ffi::xcw_native_list_simulators(&mut error);
300 string_from_raw(raw, error)?
301 };
302 let payload: SimulatorsEnvelope =
303 serde_json::from_str(&json).map_err(|e| AppError::internal(e.to_string()))?;
304 Ok(payload.simulators)
305 }
306
307 pub fn simulator(&self, udid: &str) -> Result<Option<Simulator>, AppError> {
308 Ok(self

Callers 2

list_simulators_cachedFunction · 0.80
simulatorMethod · 0.80

Calls 2

string_from_rawFunction · 0.85

Tested by

no test coverage detected