MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / shutdown_simulator

Method shutdown_simulator

packages/server/src/native/bridge.rs:383–392  ·  view source on GitHub ↗
(&self, udid: &str)

Source from the content-addressed store, hash-verified

381 }
382
383 pub fn shutdown_simulator(&self, udid: &str) -> Result<(), AppError> {
384 unsafe {
385 let udid = CString::new(udid).map_err(|e| AppError::bad_request(e.to_string()))?;
386 let mut error = ptr::null_mut();
387 bool_result(
388 ffi::xcw_native_shutdown_simulator(udid.as_ptr(), &mut error),
389 error,
390 )
391 }
392 }
393
394 pub fn toggle_appearance(&self, udid: &str) -> Result<(), AppError> {
395 unsafe {

Callers 1

shutdown_simulatorFunction · 0.80

Calls 2

bool_resultFunction · 0.85

Tested by

no test coverage detected